linux/drivers/regulator/lp8788-buck.c
<<
alue2.1/spav2. 2.1/form2. 2.1a alue2. href="../linux+v3.327/drivers/regulator/lp8788-buck.c">alue2.1img src="../.static/gfx/right.png" alt=">>">al1/spav2.al1spav class="lxr_search">aluealue2.1input typ hidden" nam navtarget" on> ">alue2.1input typ text" nam search" id search">alue2.1buttptityp submit">Searchalue2.Prefs. 2.1/a>al1/spav2.ue2. .1/div2.ue2. .1form ac v="ajax+*" method="post" onsubmit="return false;">al1input typ hidden" nam ajax_lookup" id ajax_lookup" on> ">aue2. .1/form2.aue2. .1div class="headingbottpm">. 1div id file_contents"2
. .11/a>1spav class="comment">/*1/spav2.. .21/a>1spav class="comment"> * TI LP8788 MFD - buck regulator driver1/spav2.. .31/a>1spav class="comment"> *1/spav2.. .41/a>1spav class="comment"> * Copyright 2012 Texas Instruments1/spav2.. .51/a>1spav class="comment"> *1/spav2.. .61/a>1spav class="comment"> * Author: Milo(Woogyom) Kim <milo.kim@ti.com>1/spav2.. .71/a>1spav class="comment"> *1/spav2.. .81/a>1spav class="comment"> * This program is free software; you cav redistribute it and/or modify1/spav2.. .91/a>1spav class="comment"> * it under the terms of the GNU General Public License versopti2 as1/spav2.. "
	 a>1spav class="comment"> * published by the Free Software Founda
  v.1/spav2.. 111/a>1spav class="comment"> *1/spav2.. 121/a>1spav class="comment"> */1/spav2.. 131/a>.. 141/a>#include <linux/module.h1/a>>.. 151/a>#include <linux/slab.h1/a>>.. 161/a>#include <linux/err.h1/a>>.. 171/a>#include <linux/platform_device.h1/a>>.. 181/a>#include <linux/regulator/driver.h1/a>>.. 191/a>#include <linux/mfd/lp8788.h1/a>>.. 201/a>#include <linux/gpio.h1/a>>.. 211/a>.. 221/a>1spav class="comment">/* register address */1/spav2.. 231/a>#define.1a href="+code=LP8788_EN_BUCK" class="sref">LP8788_EN_BUCK1/a>                  0x0C.. 241/a>#define.1a href="+code=LP8788_BUCK_DVS_SEL" class="sref">LP8788_BUCK_DVS_SEL1/a>             0x1D.. 251/a>#define.1a href="+code=LP8788_BUCK1_VOUT0" class="sref">LP8788_BUCK1_VOUT01/a>              0x1E.. 261/a>#define.1a href="+code=LP8788_BUCK1_VOUT1" class="sref">LP8788_BUCK1_VOUT11/a>              0x1F.. 271/a>#define.1a href="+code=LP8788_BUCK1_VOUT2" class="sref">LP8788_BUCK1_VOUT21/a>              0x20.. 281/a>#define.1a href="+code=LP8788_BUCK1_VOUT3" class="sref">LP8788_BUCK1_VOUT31/a>              0x21.. 291/a>#define.1a href="+code=LP8788_BUCK2_VOUT0" class="sref">LP8788_BUCK2_VOUT01/a>              0x22.. 301/a>#define.1a href="+code=LP8788_BUCK2_VOUT1" class="sref">LP8788_BUCK2_VOUT11/a>              0x23.. 311/a>#define.1a href="+code=LP8788_BUCK2_VOUT2" class="sref">LP8788_BUCK2_VOUT21/a>              0x24.. 321/a>#define.1a href="+code=LP8788_BUCK2_VOUT3" class="sref">LP8788_BUCK2_VOUT31/a>              0x25.. 331/a>#define.1a href="+code=LP8788_BUCK3_VOUT" class="sref">LP8788_BUCK3_VOUT1/a>               0x26.. 341/a>#define.1a href="+code=LP8788_BUCK4_VOUT" class="sref">LP8788_BUCK4_VOUT1/a>               0x27.. 351/a>#define.1a href="+code=LP8788_BUCK1_TIMESTEP" class="sref">LP8788_BUCK1_TIMESTEP1/a>           0x28.. 361/a>#define.1a href="+code=LP8788_BUCK_PWM" class="sref">LP8788_BUCK_PWM1/a>                 0x2D.. 371/a>.. 381/a>1spav class="comment">/* mask/shift bits */1/spav2.. 391/a>#define.1a href="+code=LP8788_EN_BUCK1_M" class="sref">LP8788_EN_BUCK1_M1/a>               1a href="+code=BIT" class="sref">BIT1/a>(0)  1spav class="comment">/* Addr 0Ch */1/spav2.. 401/a>#define.1a href="+code=LP8788_EN_BUCK2_M" class="sref">LP8788_EN_BUCK2_M1/a>               1a href="+code=BIT" class="sref">BIT1/a>(1).. 411/a>#define.1a href="+code=LP8788_EN_BUCK3_M" class="sref">LP8788_EN_BUCK3_M1/a>               1a href="+code=BIT" class="sref">BIT1/a>(2).. 421/a>#define.1a href="+code=LP8788_EN_BUCK4_M" class="sref">LP8788_EN_BUCK4_M1/a>               1a href="+code=BIT" class="sref">BIT1/a>(3).. 431/a>#define.1a href="+code=LP8788_BUCK1_DVS_SEL_M" class="sref">LP8788_BUCK1_DVS_SEL_M1/a>          0x04    1spav class="comment">/* Addr 1Dh */1/spav2.. 441/a>#define.1a href="+code=LP8788_BUCK1_DVS_M" class="sref">LP8788_BUCK1_DVS_M1/a>              0x03.. 451/a>#define.1a href="+code=LP8788_BUCK1_DVS_S" class="sref">LP8788_BUCK1_DVS_S1/a>              0.. 461/a>#define.1a href="+code=LP8788_BUCK2_DVS_SEL_M" class="sref">LP8788_BUCK2_DVS_SEL_M1/a>          0x40.. 471/a>#define.1a href="+code=LP8788_BUCK2_DVS_M" class="sref">LP8788_BUCK2_DVS_M1/a>              0x30.. 481/a>#define.1a href="+code=LP8788_BUCK2_DVS_S" class="sref">LP8788_BUCK2_DVS_S1/a>              4.. 491/a>#define.1a href="+code=LP8788_BUCK1_DVS_I2C" class="sref">LP8788_BUCK1_DVS_I2C1/a>            1a href="+code=BIT" class="sref">BIT1/a>(2).. 501/a>#define.1a href="+code=LP8788_BUCK2_DVS_I2C" class="sref">LP8788_BUCK2_DVS_I2C1/a>            1a href="+code=BIT" class="sref">BIT1/a>(6).. 511/a>#define.1a href="+code=LP8788_BUCK1_DVS_PIN" class="sref">LP8788_BUCK1_DVS_PIN1/a>            (0 << 2).. 521/a>#define.1a href="+code=LP8788_BUCK2_DVS_PIN" class="sref">LP8788_BUCK2_DVS_PIN1/a>            (0 << 6).. 531/a>#define.1a href="+code=LP8788_VOUT_M" class="sref">LP8788_VOUT_M1/a>                   0x1F    1spav class="comment">/* Addr 1Eh ~ 27h */1/spav2.. 541/a>#define.1a href="+code=LP8788_STARTUP_TIME_M" class="sref">LP8788_STARTUP_TIME_M1/a>           0xF8    1spav class="comment">/* Addr 28h ~ 2Bh */1/spav2.. 551/a>#define.1a href="+code=LP8788_STARTUP_TIME_S" class="sref">LP8788_STARTUP_TIME_S1/a>           3.. 561/a>#define.1a href="+code=LP8788_FPWM_BUCK1_M" class="sref">LP8788_FPWM_BUCK1_M1/a>             1a href="+code=BIT" class="sref">BIT1/a>(0)  1spav class="comment">/* Addr 2Dh */1/spav2.. 571/a>#define.1a href="+code=LP8788_FPWM_BUCK1_S" class="sref">LP8788_FPWM_BUCK1_S1/a>             0.. 581/a>#define.1a href="+code=LP8788_FPWM_BUCK2_M" class="sref">LP8788_FPWM_BUCK2_M1/a>             1a href="+code=BIT" class="sref">BIT1/a>(1).. 591/a>#define.1a href="+code=LP8788_FPWM_BUCK2_S" class="sref">LP8788_FPWM_BUCK2_S1/a>             1.. 601/a>#define.1a href="+code=LP8788_FPWM_BUCK3_M" class="sref">LP8788_FPWM_BUCK3_M1/a>             1a href="+code=BIT" class="sref">BIT1/a>(2).. 611/a>#define.1a href="+code=LP8788_FPWM_BUCK3_S" class="sref">LP8788_FPWM_BUCK3_S1/a>             2.. 621/a>#define.1a href="+code=LP8788_FPWM_BUCK4_M" class="sref">LP8788_FPWM_BUCK4_M1/a>             1a href="+code=BIT" class="sref">BIT1/a>(3).. 631/a>#define.1a href="+code=LP8788_FPWM_BUCK4_S" class="sref">LP8788_FPWM_BUCK4_S1/a>             3.. 641/a>.. 651/a>#define.1a href="+code=INVALID_ADDR" class="sref">INVALID_ADDR1/a>                    0xFF.. 661/a>#define.1a href="+code=LP8788_FORCE_PWM" class="sref">LP8788_FORCE_PWM1/a>                1.. 671/a>#define.1a href="+code=LP8788_AUTO_PWM" class="sref">LP8788_AUTO_PWM1/a>                 0.. 681/a>#define.1a href="+code=PIN_LOW" class="sref">PIN_LOW1/a>                         0.. 691/a>#define.1a href="+code=PIN_HIGH" class="sref">PIN_HIGH1/a>                        1.. 701/a>#define.1a href="+code=ENABLE_TIME_USEC" class="sref">ENABLE_TIME_USEC1/a>                32.. 711/a>.. 721/a>enum.1a href="+code=lp8788_dvs_state" class="sref">lp8788_dvs_state1/a> {.. 731/a>        1a href="+code=DVS_LOW" class="sref">DVS_LOW1/a>  = 1a href="+code=GPIOF_OUT_INIT_LOW" class="sref">GPIOF_OUT_INIT_LOW1/a>,.. 741/a>        1a href="+code=DVS_HIGH" class="sref">DVS_HIGH1/a> = 1a href="+code=GPIOF_OUT_INIT_HIGH" class="sref">GPIOF_OUT_INIT_HIGH1/a>,.. 751/a>};.. 761/a>.. 771/a>enum.1a href="+code=lp8788_dvs_mode" class="sref">lp8788_dvs_mode1/a> {.. 781/a>        1a href="+code=REGISTER" class="sref">REGISTER1/a>,.. 791/a>        1a href="+code=EXTPIN" class="sref">EXTPIN1/a>,.. 801/a>};.. 811/a>.. 821/a>enum.1a href="+code=lp8788_buck_id" class="sref">lp8788_buck_id1/a> {.. 831/a>        1a href="+code=BUCK1" class="sref">BUCK11/a>,.. 841/a>        1a href="+code=BUCK2" class="sref">BUCK21/a>,.. 851/a>        1a href="+code=BUCK3" class="sref">BUCK31/a>,.. 861/a>        1a href="+code=BUCK4" class="sref">BUCK41/a>,.. 871/a>};.. 881/a>.. 891/a>struct.1a href="+code=lp8788_pwm_map" class="sref">lp8788_pwm_map1/a> {.. 901/a>        1a href="+code=u8" class="sref">u81/a> 1a href="+code=mask" class="sref">mask1/a>;.. 911/a>        1a href="+code=u8" class="sref">u81/a> 1a href="+code=shift" class="sref">shift1/a>;.. 921/a>};.. 931/a>.. 941/a>struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> {.. 951/a>        struct.1a href="+code=lp8788" class="sref">lp87881/a> *1a href="+code=lp" class="sref">lp1/a>;.. 961/a>        struct.1a href="+code=regulator_dev" class="sref">regulator_dev1/a> *1a href="+code=regulator" class="sref">regulator1/a>;.. 971/a>        struct.1a href="+code=lp8788_pwm_map" class="sref">lp8788_pwm_map1/a> *1a href="+code=pmap" class="sref">pmap1/a>;.. 981/a>        void *1a href="+code=dvs" class="sref">dvs1/a>;.. 991/a>};..1001/a>..1011/a>1spav class="comment">/* BUCK 1 ~ 4 voltage table */1/spav2..1021/a>static const int.1a href="+code=lp8788_buck_vtbl" class="sref">lp8788_buck_vtbl1/a>[] = {..1031/a>         500000,. 800000,. 850000,. 900000,. 950000,.1000000,.1050000,.1100000,..1041/a>        1150000,.1200000,.1250000,.1300000,.1350000,.1400000,.1450000,.1500000,..1051/a>        1550000,.1600000,.1650000,.1700000,.1750000,.1800000,.1850000,.1900000,..1061/a>        1950000,.2000000,..1071/a>};..1081/a>..1091/a>1spav class="comment">/* buck pwm mode selectopti: used for set/get_mode in regulator ops1/spav2..1"
	 a>1spav class="comment"> * @forced pwm : fast mode1/spav2..1111/a>1spav class="comment"> * @auto pwm   : normal mode1/spav2..1121/a>1spav class="comment"> */1/spav2..1131/a>static struct.1a href="+code=lp8788_pwm_map" class="sref">lp8788_pwm_map1/a> 1a href="+code=buck_pmap" class="sref">buck_pmap1/a>[] = {..1141/a>        [1a href="+code=BUCK1" class="sref">BUCK11/a>] = {..1151/a>                .1a href="+code=mask" class="sref">mask1/a> = 1a href="+code=LP8788_FPWM_BUCK1_M" class="sref">LP8788_FPWM_BUCK1_M1/a>,..1161/a>                .1a href="+code=shift" class="sref">shift1/a> = 1a href="+code=LP8788_FPWM_BUCK1_S" class="sref">LP8788_FPWM_BUCK1_S1/a>,..1171/a>        },..1181/a>        [1a href="+code=BUCK2" class="sref">BUCK21/a>] = {..1191/a>                .1a href="+code=mask" class="sref">mask1/a> = 1a href="+code=LP8788_FPWM_BUCK2_M" class="sref">LP8788_FPWM_BUCK2_M1/a>,..1201/a>                .1a href="+code=shift" class="sref">shift1/a> = 1a href="+code=LP8788_FPWM_BUCK2_S" class="sref">LP8788_FPWM_BUCK2_S1/a>,..1211/a>        },..1221/a>        [1a href="+code=BUCK3" class="sref">BUCK31/a>] = {..1231/a>                .1a href="+code=mask" class="sref">mask1/a> = 1a href="+code=LP8788_FPWM_BUCK3_M" class="sref">LP8788_FPWM_BUCK3_M1/a>,..1241/a>                .1a href="+code=shift" class="sref">shift1/a> = 1a href="+code=LP8788_FPWM_BUCK3_S" class="sref">LP8788_FPWM_BUCK3_S1/a>,..1251/a>        },..1261/a>        [1a href="+code=BUCK4" class="sref">BUCK41/a>] = {..1271/a>                .1a href="+code=mask" class="sref">mask1/a> = 1a href="+code=LP8788_FPWM_BUCK4_M" class="sref">LP8788_FPWM_BUCK4_M1/a>,..1281/a>                .1a href="+code=shift" class="sref">shift1/a> = 1a href="+code=LP8788_FPWM_BUCK4_S" class="sref">LP8788_FPWM_BUCK4_S1/a>,..1291/a>        },..1301/a>};..1311/a>..1321/a>static const 1a href="+code=u8" class="sref">u81/a> 1a href="+code=buck1_vout_addr" class="sref">buck1_vout_addr1/a>[] = {..1331/a>        1a href="+code=LP8788_BUCK1_VOUT0" class="sref">LP8788_BUCK1_VOUT01/a>,.1a href="+code=LP8788_BUCK1_VOUT1" class="sref">LP8788_BUCK1_VOUT11/a>,..1341/a>        1a href="+code=LP8788_BUCK1_VOUT2" class="sref">LP8788_BUCK1_VOUT21/a>,.1a href="+code=LP8788_BUCK1_VOUT3" class="sref">LP8788_BUCK1_VOUT31/a>,..1351/a>};..1361/a>..1371/a>static const 1a href="+code=u8" class="sref">u81/a> 1a href="+code=buck2_vout_addr" class="sref">buck2_vout_addr1/a>[] = {..1381/a>        1a href="+code=LP8788_BUCK2_VOUT0" class="sref">LP8788_BUCK2_VOUT01/a>,.1a href="+code=LP8788_BUCK2_VOUT1" class="sref">LP8788_BUCK2_VOUT11/a>,..1391/a>        1a href="+code=LP8788_BUCK2_VOUT2" class="sref">LP8788_BUCK2_VOUT21/a>,.1a href="+code=LP8788_BUCK2_VOUT3" class="sref">LP8788_BUCK2_VOUT31/a>,..1401/a>};..1411/a>..1421/a>static void 1a href="+code=lp8788_buck1_set_dvs" class="sref">lp8788_buck1_set_dvs1/a>(struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a>)..1431/a>{..1441/a>        struct.1a href="+code=lp8788_buck1_dvs" class="sref">lp8788_buck1_dvs1/a> *1a href="+code=dvs" class="sref">dvs1/a> = (struct.1a href="+code=lp8788_buck1_dvs" class="sref">lp8788_buck1_dvs1/a> *)1a href="+code=buck" class="sref">buck1/a>->1a href="+code=dvs" class="sref">dvs1/a>;..1451/a>        enum.1a href="+code=lp8788_dvs_state" class="sref">lp8788_dvs_state1/a> 1a href="+code=pinstate" class="sref">pinstate1/a>;..1461/a>..1471/a>        if (!1a href="+code=dvs" class="sref">dvs1/a>)..1481/a>                return;..1491/a>..1501/a>        1a href="+code=pinstate" class="sref">pinstate1/a> = 1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=vsel" class="sref">vsel1/a> == 1a href="+code=DVS_SEL_V0" class="sref">DVS_SEL_V01/a> ? 1a href="+code=DVS_LOW" class="sref">DVS_LOW1/a> : 1a href="+code=DVS_HIGH" class="sref">DVS_HIGH1/a>;..1511/a>        if (1a href="+code=gpio_is_valid" class="sref">gpio_is_valid1/a>(1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>))..1521/a>                1a href="+code=gpio_set_on>
 " class="sref">gpio_set_on>
 1/a>(1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>,.1a href="+code=pinstate" class="sref">pinstate1/a>);..1531/a>}..1541/a>..1551/a>static void 1a href="+code=lp8788_buck2_set_dvs" class="sref">lp8788_buck2_set_dvs1/a>(struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a>)..1561/a>{..1571/a>        struct.1a href="+code=lp8788_buck2_dvs" class="sref">lp8788_buck2_dvs1/a> *1a href="+code=dvs" class="sref">dvs1/a> = (struct.1a href="+code=lp8788_buck2_dvs" class="sref">lp8788_buck2_dvs1/a> *)1a href="+code=buck" class="sref">buck1/a>->1a href="+code=dvs" class="sref">dvs1/a>;..1581/a>        enum.1a href="+code=lp8788_dvs_state" class="sref">lp8788_dvs_state1/a> 1a href="+code=pin1" class="sref">pin11/a>,.1a href="+code=pin2" class="sref">pin21/a>;..1591/a>..1601/a>        if (!1a href="+code=dvs" class="sref">dvs1/a>)..1611/a>                return;..1621/a>..1631/a>        switch (1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=vsel" class="sref">vsel1/a>) {..1641/a>        case.1a href="+code=DVS_SEL_V0" class="sref">DVS_SEL_V01/a>:..1651/a>                1a href="+code=pin1" class="sref">pin11/a> = 1a href="+code=DVS_LOW" class="sref">DVS_LOW1/a>;..1661/a>                1a href="+code=pin2" class="sref">pin21/a> = 1a href="+code=DVS_LOW" class="sref">DVS_LOW1/a>;..1671/a>                break;..1681/a>        case.1a href="+code=DVS_SEL_V1" class="sref">DVS_SEL_V11/a>:..1691/a>                1a href="+code=pin1" class="sref">pin11/a> = 1a href="+code=DVS_HIGH" class="sref">DVS_HIGH1/a>;..1701/a>                1a href="+code=pin2" class="sref">pin21/a> = 1a href="+code=DVS_LOW" class="sref">DVS_LOW1/a>;..1711/a>                break;..1721/a>        case.1a href="+code=DVS_SEL_V2" class="sref">DVS_SEL_V21/a>:..1731/a>                1a href="+code=pin1" class="sref">pin11/a> = 1a href="+code=DVS_LOW" class="sref">DVS_LOW1/a>;..1741/a>                1a href="+code=pin2" class="sref">pin21/a> = 1a href="+code=DVS_HIGH" class="sref">DVS_HIGH1/a>;..1751/a>                break;..1761/a>        case.1a href="+code=DVS_SEL_V3" class="sref">DVS_SEL_V31/a>:..1771/a>                1a href="+code=pin1" class="sref">pin11/a> = 1a href="+code=DVS_HIGH" class="sref">DVS_HIGH1/a>;..1781/a>                1a href="+code=pin2" class="sref">pin21/a> = 1a href="+code=DVS_HIGH" class="sref">DVS_HIGH1/a>;..1791/a>                break;..1801/a>        default:..1811/a>                return;..1821/a>        }..1831/a>..1841/a>        if (1a href="+code=gpio_is_valid" class="sref">gpio_is_valid1/a>(1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>[0]))..1851/a>                1a href="+code=gpio_set_on>
 " class="sref">gpio_set_on>
 1/a>(1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>[0],.1a href="+code=pin1" class="sref">pin11/a>);..1861/a>..1871/a>        if (1a href="+code=gpio_is_valid" class="sref">gpio_is_valid1/a>(1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>[1]))..1881/a>                1a href="+code=gpio_set_on>
 " class="sref">gpio_set_on>
 1/a>(1a href="+code=dvs" class="sref">dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>[1],.1a href="+code=pin2" class="sref">pin21/a>);..1891/a>}..1901/a>..1911/a>static void 1a href="+code=lp8788_set_dvs" class="sref">lp8788_set_dvs1/a>(struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a>, enum.1a href="+code=lp8788_buck_id" class="sref">lp8788_buck_id1/a> 1a href="+code=id" class="sref">id1/a>)..1921/a>{..1931/a>        switch (1a href="+code=id" class="sref">id1/a>) {..1941/a>        case.1a href="+code=BUCK1" class="sref">BUCK11/a>:..1951/a>                1a href="+code=lp8788_buck1_set_dvs" class="sref">lp8788_buck1_set_dvs1/a>(1a href="+code=buck" class="sref">buck1/a>);..1961/a>                break;..1971/a>        case.1a href="+code=BUCK2" class="sref">BUCK21/a>:..1981/a>                1a href="+code=lp8788_buck2_set_dvs" class="sref">lp8788_buck2_set_dvs1/a>(1a href="+code=buck" class="sref">buck1/a>);..1991/a>                break;..2001/a>        default:..2011/a>                break;..2021/a>        }..2031/a>}..2041/a>..2051/a>static enum.1a href="+code=lp8788_dvs_mode" class="sref">lp8788_dvs_mode1/a>..2061/a>1a href="+code=lp8788_get_buck_dvs_ctrl_mode" class="sref">lp8788_get_buck_dvs_ctrl_mode1/a>(struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a>, enum.1a href="+code=lp8788_buck_id" class="sref">lp8788_buck_id1/a> 1a href="+code=id" class="sref">id1/a>)..2071/a>{..2081/a>        1a href="+code=u8" class="sref">u81/a> 1a href="+code=on>" class="sref">val1/a>,.1a href="+code=mask" class="sref">mask1/a>;..2091/a>..2101/a>        switch (1a href="+code=id" class="sref">id1/a>) {..2111/a>        case.1a href="+code=BUCK1" class="sref">BUCK11/a>:..2121/a>                1a href="+code=mask" class="sref">mask1/a> = 1a href="+code=LP8788_BUCK1_DVS_SEL_M" class="sref">LP8788_BUCK1_DVS_SEL_M1/a>;..2131/a>                break;..2141/a>        case.1a href="+code=BUCK2" class="sref">BUCK21/a>:..2151/a>                1a href="+code=mask" class="sref">mask1/a> = 1a href="+code=LP8788_BUCK2_DVS_SEL_M" class="sref">LP8788_BUCK2_DVS_SEL_M1/a>;..2161/a>                break;..2171/a>        default:..2181/a>                return 1a href="+code=REGISTER" class="sref">REGISTER1/a>;..2191/a>        }..2201/a>..2211/a>        1a href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buck" class="sref">buck1/a>->1a href="+code=lp" class="sref">lp1/a>,.1a href="+code=LP8788_BUCK_DVS_SEL" class="sref">LP8788_BUCK_DVS_SEL1/a>,.&1a href="+code=vn>" class="sref">val1/a>);..2221/a>..2231/a>        return 1a href="+code=vn>" class="sref">val1/a>.& 1a href="+code=mask" class="sref">mask1/a> ? 1a href="+code=REGISTER" class="sref">REGISTER1/a> : 1a href="+code=EXTPIN" class="sref">EXTPIN1/a>;..2241/a>}..2251/a>..2261/a>static 1a href="+code=boo>" class="sref">boo>1/a> 1a href="+code=lp8788_is_valid_buck_addr" class="sref">lp8788_is_valid_buck_addr1/a>(1a href="+code=u8" class="sref">u81/a> 1a href="+code=addr" class="sref">addr1/a>)..2271/a>{..2281/a>        switch (1a href="+code=addr" class="sref">addr1/a>) {..2291/a>        case.1a href="+code=LP8788_BUCK1_VOUT0" class="sref">LP8788_BUCK1_VOUT01/a>:..2301/a>        case.1a href="+code=LP8788_BUCK1_VOUT1" class="sref">LP8788_BUCK1_VOUT11/a>:..2311/a>        case.1a href="+code=LP8788_BUCK1_VOUT2" class="sref">LP8788_BUCK1_VOUT21/a>:..2321/a>        case.1a href="+code=LP8788_BUCK1_VOUT3" class="sref">LP8788_BUCK1_VOUT31/a>:..2331/a>        case.1a href="+code=LP8788_BUCK2_VOUT0" class="sref">LP8788_BUCK2_VOUT01/a>:..2341/a>        case.1a href="+code=LP8788_BUCK2_VOUT1" class="sref">LP8788_BUCK2_VOUT11/a>:..2351/a>        case.1a href="+code=LP8788_BUCK2_VOUT2" class="sref">LP8788_BUCK2_VOUT21/a>:..2361/a>        case.1a href="+code=LP8788_BUCK2_VOUT3" class="sref">LP8788_BUCK2_VOUT31/a>:..2371/a>                return 1a href="+code=tr
 " class="sref">tr
 1/a>;..2381/a>        default:..2391/a>                return 1a href="+code=fals " class="sref">fals 1/a>;..2401/a>        }..2411/a>}..2421/a>..2431/a>static 1a href="+code=u8" class="sref">u81/a> 1a href="+code=lp8788_select_buck_vout_addr" class="sref">lp8788_select_buck_vout_addr1/a>(struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a>,..2441/a>                                        enum.1a href="+code=lp8788_buck_id" class="sref">lp8788_buck_id1/a> 1a href="+code=id" class="sref">id1/a>)..2451/a>{..2461/a>        enum.1a href="+code=lp8788_dvs_mode" class="sref">lp8788_dvs_mode1/a> 1a href="+code=mode" class="sref">mode1/a> = 1a href="+code=lp8788_get_buck_dvs_ctrl_mode" class="sref">lp8788_get_buck_dvs_ctrl_mode1/a>(1a href="+code=buck" class="sref">buck1/a>, 1a href="+code=id" class="sref">id1/a>);..2471/a>        struct.1a href="+code=lp8788_buck1_dvs" class="sref">lp8788_buck1_dvs1/a> *1a href="+code=b1_dvs" class="sref">b1_dvs1/a>;..2481/a>        struct.1a href="+code=lp8788_buck2_dvs" class="sref">lp8788_buck2_dvs1/a> *1a href="+code=b2_dvs" class="sref">b2_dvs1/a>;..2491/a>        1a href="+code=u8" class="sref">u81/a> 1a href="+code=on>" class="sref">val1/a>,.1a href="+code=idx" class="sref">idx1/a>,.1a href="+code=addr" class="sref">addr1/a>;..2501/a>        int.1a href="+code=pin1" class="sref">pin11/a>,.1a href="+code=pin2" class="sref">pin21/a>;..2511/a>..2521/a>        switch (1a href="+code=id" class="sref">id1/a>) {..2531/a>        case.1a href="+code=BUCK1" class="sref">BUCK11/a>:..2541/a>                if (1a href="+code=mode" class="sref">mode1/a> == 1a href="+code=EXTPIN" class="sref">EXTPIN1/a>) {..2551/a>                        1a href="+code=b1_dvs" class="sref">b1_dvs1/a> = (struct.1a href="+code=lp8788_buck1_dvs" class="sref">lp8788_buck1_dvs1/a> *)1a href="+code=buck" class="sref">buck1/a>->1a href="+code=dvs" class="sref">dvs1/a>;..2561/a>                        if (!1a href="+code=b1_dvs" class="sref">b1_dvs1/a>)..2571/a>                                goto.1a href="+code=err" class="sref">err1/a>;..2581/a>..2591/a>                        1a href="+code=idx" class="sref">idx1/a> = 1a href="+code=gpio_get_on>
 " class="sref">gpio_get_on>
 1/a>(1a href="+code=b1_dvs" class="sref">b1_dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>) ? 1 : 0;..2601/a>                } els  {..2611/a>                        1a href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buck" class="sref">buck1/a>->1a href="+code=lp" class="sref">lp1/a>,.1a href="+code=LP8788_BUCK_DVS_SEL" class="sref">LP8788_BUCK_DVS_SEL1/a>,.&1a href="+code=vn>" class="sref">val1/a>);..2621/a>                        1a href="+code=idx" class="sref">idx1/a> = (1a href="+code=vn>" class="sref">val1/a>.& 1a href="+code=LP8788_BUCK1_DVS_M" class="sref">LP8788_BUCK1_DVS_M1/a>) >> 1a href="+code=LP8788_BUCK1_DVS_S" class="sref">LP8788_BUCK1_DVS_S1/a>;..2631/a>                }..2641/a>                1a href="+code=addr" class="sref">addr1/a> = 1a href="+code=buck1_vout_addr" class="sref">buck1_vout_addr1/a>[1a href="+code=idx" class="sref">idx1/a>];..2651/a>                break;..2661/a>        case.1a href="+code=BUCK2" class="sref">BUCK21/a>:..2671/a>                if (1a href="+code=mode" class="sref">mode1/a> == 1a href="+code=EXTPIN" class="sref">EXTPIN1/a>) {..2681/a>                        1a href="+code=b2_dvs" class="sref">b2_dvs1/a> = (struct.1a href="+code=lp8788_buck2_dvs" class="sref">lp8788_buck2_dvs1/a> *)1a href="+code=buck" class="sref">buck1/a>->1a href="+code=dvs" class="sref">dvs1/a>;..2691/a>                        if (!1a href="+code=b2_dvs" class="sref">b2_dvs1/a>)..2701/a>                                goto.1a href="+code=err" class="sref">err1/a>;..2711/a>..2721/a>                        1a href="+code=pin1" class="sref">pin11/a> = 1a href="+code=gpio_get_on>
 " class="sref">gpio_get_on>
 1/a>(1a href="+code=b2_dvs" class="sref">b2_dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>[0]);..2731/a>                        1a href="+code=pin2" class="sref">pin21/a> = 1a href="+code=gpio_get_on>
 " class="sref">gpio_get_on>
 1/a>(1a href="+code=b2_dvs" class="sref">b2_dvs1/a>->1a href="+code=gpio" class="sref">gpio1/a>[1]);..2741/a>..2751/a>                        if (1a href="+code=pin1" class="sref">pin11/a> == 1a href="+code=PIN_LOW" class="sref">PIN_LOW1/a>.&& 1a href="+code=pin2" class="sref">pin21/a> == 1a href="+code=PIN_LOW" class="sref">PIN_LOW1/a>)..2761/a>                                1a href="+code=idx" class="sref">idx1/a> = 0;..2771/a>                        els  if (1a href="+code=pin1" class="sref">pin11/a> == 1a href="+code=PIN_LOW" class="sref">PIN_LOW1/a>.&& 1a href="+code=pin2" class="sref">pin21/a> == 1a href="+code=PIN_HIGH" class="sref">PIN_HIGH1/a>)..2781/a>                                1a href="+code=idx" class="sref">idx1/a> = 2;..2791/a>                        els  if (1a href="+code=pin1" class="sref">pin11/a> == 1a href="+code=PIN_HIGH" class="sref">PIN_HIGH1/a>.&& 1a href="+code=pin2" class="sref">pin21/a> == 1a href="+code=PIN_LOW" class="sref">PIN_LOW1/a>)..2801/a>                                1a href="+code=idx" class="sref">idx1/a> = 1;..2811/a>                        els ..2821/a>                                1a href="+code=idx" class="sref">idx1/a> = 3;..2831/a>                } els  {..2841/a>                        1a href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buck" class="sref">buck1/a>->1a href="+code=lp" class="sref">lp1/a>,.1a href="+code=LP8788_BUCK_DVS_SEL" class="sref">LP8788_BUCK_DVS_SEL1/a>,.&1a href="+code=vn>" class="sref">val1/a>);..2851/a>                        1a href="+code=idx" class="sref">idx1/a> = (1a href="+code=vn>" class="sref">val1/a>.& 1a href="+code=LP8788_BUCK2_DVS_M" class="sref">LP8788_BUCK2_DVS_M1/a>) >> 1a href="+code=LP8788_BUCK2_DVS_S" class="sref">LP8788_BUCK2_DVS_S1/a>;..2861/a>                }..2871/a>                1a href="+code=addr" class="sref">addr1/a> = 1a href="+code=buck2_vout_addr" class="sref">buck2_vout_addr1/a>[1a href="+code=idx" class="sref">idx1/a>];..2881/a>                break;..2891/a>        default:..2901/a>                goto.1a href="+code=err" class="sref">err1/a>;..2911/a>        }..2921/a>..2931/a>        return 1a href="+code=addr" class="sref">addr1/a>;..2941/a>1a href="+code=err" class="sref">err1/a>:..2951/a>        return 1a href="+code=INVALID_ADDR" class="sref">INVALID_ADDR1/a>;..2961/a>}..2971/a>..2981/a>static int.1a href="+code=lp8788_buck12_set_voltage_sel" class="sref">lp8788_buck12_set_voltage_sel1/a>(struct.1a href="+code=regulator_dev" class="sref">regulator_dev1/a> *1a href="+code=rdev" class="sref">rdev1/a>,..2991/a>                                        unsigned 1a href="+code=selector" class="sref">selector1/a>)..3001/a>{..3011/a>        struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a> = 1a href="+code=rdev_get_drvdata" class="sref">rdev_get_drvdata1/a>(1a href="+code=rdev" class="sref">rdev1/a>);..3021/a>        enum.1a href="+code=lp8788_buck_id" class="sref">lp8788_buck_id1/a> 1a href="+code=id" class="sref">id1/a> = 1a href="+code=rdev_get_id" class="sref">rdev_get_id1/a>(1a href="+code=rdev" class="sref">rdev1/a>);..3031/a>        1a href="+code=u8" class="sref">u81/a> 1a href="+code=addr" class="sref">addr1/a>;..3041/a>..3051/a>        if (1a href="+code=buck" class="sref">buck1/a>->1a href="+code=dvs" class="sref">dvs1/a>)..3061/a>                1a href="+code=lp8788_set_dvs" class="sref">lp8788_set_dvs1/a>(1a href="+code=buck" class="sref">buck1/a>, 1a href="+code=id" class="sref">id1/a>);..3071/a>..3081/a>        1a href="+code=addr" class="sref">addr1/a> = 1a href="+code=lp8788_select_buck_vout_addr" class="sref">lp8788_select_buck_vout_addr1/a>(1a href="+code=buck" class="sref">buck1/a>, 1a href="+code=id" class="sref">id1/a>);..3091/a>        if (!1a href="+code=lp8788_is_valid_buck_addr" class="sref">lp8788_is_valid_buck_addr1/a>(1a href="+code=addr" class="sref">addr1/a>))..3101/a>                return -1a href="+code=EINVAL" class="sref">EINVAL1/a>;..3111/a>..3121/a>        return 1a href="+code=lp8788_update_bits" class="sref">lp8788_update_bits1/a>(1a href="+code=buck" class="sref">buck1/a>->1a href="+code=lp" class="sref">lp1/a>,.1a href="+code=addr" class="sref">addr1/a>,.1a href="+code=LP8788_VOUT_M" class="sref">LP8788_VOUT_M1/a>,.1a href="+code=selector" class="sref">selector1/a>);..3131/a>}..3141/a>..3151/a>static int.1a href="+code=lp8788_buck12_get_voltage_sel" class="sref">lp8788_buck12_get_voltage_sel1/a>(struct.1a href="+code=regulator_dev" class="sref">regulator_dev1/a> *1a href="+code=rdev" class="sref">rdev1/a>)..3161/a>{..3171/a>        struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a> = 1a href="+code=rdev_get_drvdata" class="sref">rdev_get_drvdata1/a>(1a href="+code=rdev" class="sref">rdev1/a>);..3181/a>        enum.1a href="+code=lp8788_buck_id" class="sref">lp8788_buck_id1/a> 1a href="+code=id" class="sref">id1/a> = 1a href="+code=rdev_get_id" class="sref">rdev_get_id1/a>(1a href="+code=rdev" class="sref">rdev1/a>);..3191/a>        int.1a href="+code=ret" class="sref">ret1/a>;..3201/a>        1a href="+code=u8" class="sref">u81/a> 1a href="+code=on>" class="sref">val1/a>,.1a href="+code=addr" class="sref">addr1/a>;..3211/a>..3221/a>        1a href="+code=addr" class="sref">addr1/a> = 1a href="+code=lp8788_select_buck_vout_addr" class="sref">lp8788_select_buck_vout_addr1/a>(1a href="+code=buck" class="sref">buck1/a>, 1a href="+code=id" class="sref">id1/a>);..3231/a>        if (!1a href="+code=lp8788_is_valid_buck_addr" class="sref">lp8788_is_valid_buck_addr1/a>(1a href="+code=addr" class="sref">addr1/a>))..3241/a>                return -1a href="+code=EINVAL" class="sref">EINVAL1/a>;..3251/a>..3261/a>        1a href="+code=ret" class="sref">ret1/a> = 1a href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buck" class="sref">buck1/a>->1a href="+code=lp" class="sref">lp1/a>,.1a href="+code=addr" class="sref">addr1/a>,.&1a href="+code=vn>" class="sref">val1/a>);..3271/a>        if (1a href="+code=ret" class="sref">ret1/a>)..3281/a>                return 1a href="+code=ret" class="sref">ret1/a>;..3291/a>..3Cinee=id" 4 href="drivers/regulator/lp8788-buck.c#L329" idrivers/regulator/lp8788-buck.c#L330r href3sref">LP8788_BUCK1_VOUT13/a>:.33 href="drivers/regulator/lp8788-buck.c#L241" id 
32" class=3sref">LP8788_BUCK1_VOUT23/a>:.33 href="drivers/regulator/lp8788-buck.c#L292" id 33" class=3sref">LP8788_BUCK1_VOUT33/a>:.33 href="drivers/regulator/lp8788-buck.c#L31_enable_tima>        1a href="+cod#L31_enable_timaef="+code=lp8788_buck12_get_voltage_sel" class="sref">lp8788_buck12_get_voltage_sel1/a>(struct.1a href="+code=regulator_dev" class="sref">regulator_dev1/a> *1a h0" class=3sref">LP8788_BUCK2_VOUT03/a>:.3a href="drivers/regulator/lp8788-buck.c#L316" id 
L1" class=3sref">LP8788_BUCK2_VOUT13/a>:.3a href="drivers/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a> = 1a href="+code=rdev_get_drvdata" class="sref">rdev_get_drvdata1/a" id 
L1325" classref">LP8788_BUCK2_VOUT23/a>:.33 href="drivers/regulator/lp8788-buck.c#L318" id 
L318" class="line" nam  
L318">.3181/a>        enum.1a href="+code=lp8788_buck_id" class="sref">lp8788_buck_id1/a> 1a href="+code=id" class="sref">id1/a> = 1a href="+code=rdev_get_id" class="sref">rdev_get_id1/a>(1a hr3" class=3sref">LP8788_BUCK2_VOUT33/a>:.3a href="drivers/regulator/lp8788-buck.c#L320" id 
L320" class="line" nam  
L320">.3201/a>        1a href="+code=u8" class="sref">u81/a> 1ine" nam  
L212">.2121/a>      TIMESTEPref="drivers/regulator      TIMESTEPa> 1i+.3181/a>        enum.1a href="+code=lp8ev_get_id" class="sref">rdev_get_id1/a>(1a hr3href="+co=tr
 " class="sref">tr
 3/a>;.33 href="drivers/regulator/lp8788-buck.c#L258" id 3e" nam  
3238">.2381/a>        def3ult:.33 href="drivers/relass="line" nam  
L326">.3261/a>        1a href="+code=ret" class="sref">ret1/a> = 1a href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buck" class="sref">buck1/a>->1a href="+code=lp" class="sref">lp1/a>,.1a hreftor_dev" class="sref">regulator_dev1/a> *1a hf="+code=3als " class="sref">fals 3/a>;.34 href="drivers/regulator/lp8788-buck.c#L310" id 
L310" class="line" nam  
L310">.3101/a>                return -1a href=ss="line"3nam  
L240">.2401/a>    3   }.34 href="drivers/regulator/lp8788-buck.c#L321" id 
241" clas3="line" nam  
L241">.2413/a>}.34 href="drivers/regulator/lp8k.c#L330" id 
L3k.c#L230" m  
L285">.2851/a>                        1a href="+code=idx" class="sreSTARTUP TIME href="drivers/regulatorSTARTUP TIME h hrefl1/a>.& 1a href="+code=LP878STARTUP TIME S_M" class="sref">LP878STARTUP TIME S  
L310">.3101/a>                return -1a href=s" class=3s="line" nam  
L242">.2431/a>.34 href="drivers/regulator/lp8788-buck.c#L183" id 3ref="+cod3=buck" class="sref">buck3/a>,.3a href="drivers/regulator/lp8788-bucENABLE TIME USEC310" class="lineNABLE TIME USEC 
L317rs/regulator/lp8k.c#L330" id 
L3k.c#L230"310">.3101/a>                return -1a href=s" class=3code=id" class="sref">id3/a>).3a href="drivers/regulator/lp8788-buck.c#L241" id 
3245" clas3="line" nam  
L245">.2453/a>{.34 href="drivers/regulator/lp8788-buck.c#L186" id 3a href="+3ode=id" class="sref">id13a>);.3a href="drivers/regulator/lp8788-buck.c#L31_ 
L3 href="+code=mode" class="#L31_ 
L3 hreef="+code=lp8788_buck12_get_voltage_sel" class="sref">lp8788_buck12_get_voltage_sel1/a>(struct.1a href="+code=regula, id 
L299"rs/regulator/lp8788267" id 
L267" class="line"tor_dev" class="sref">regulator_dev1/a> *1a hfhref="+codvs" class="sref">b1_dvs3/a>;.3a href="drivers/regulator/lp8788-buck.c#L316" id 
L"+code=b23dvs" class="sref">b2_dvs3/a>;.3a href="drivers/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a> = 1a href="+code=rdev_get_drvdata" class="sref">rdev_get_drvdata1/a" id 
Lref="+cod3=addr" class="sref">addr3/a>;.3a href="drivers/regulator/lp8788-buck.c#L31pwm_map8788_read_byte1/ac#L31pwm_map 
L317">.3171/a>     pmap8788_read_byte1pmap 
L31ne" nam  
L287">.2871href="+code=lp8788_read_byte" class="sref">pmap8788_read_byte1pmap 
L3data" class="sref">rdev_get_drvdata1/a" id 
Lrs="line"3=pin2" class="sref">pin23/a>;.35 href="drivers/regulator/lp8788-buck.c#L320" id 
L320" class="line" nam  
L320">.3201/a>    data" class="sref">rdev_get_drvdata1/a" id 
Lr41" clas3s="line" nam  
L251">.2531/a>.35 href="drivers/regulator/lp8788-buck.c#L292" id 3 href="+c3de=id" class="sref">id1/3>) {.35 href="drivers/regulator/lp8788-bpmap8788_read_byte1pmap 
L3tor_dev" class="sref">regulator_dev1/a> *1a hf="+code=3UCK1" class="sref">BUCK13/a>:.3a href="drivers/regulator/lp8788-buck.c#L310" id 
L310" class="line" nam  
L310">.3101/a>                return -1a href=code=EXTP3N" class="sref">EXTPIN1/3>) {.35 href="drivers/regulator/lp8788-buck.c#L325" id 
 href="+c3de=dvs" class="sref">dvs3/a>;.3a href="drivers/regulator/lp8788-buck267" id 
L267" class="line"t8788-buck.c#L283" id 
L283" class="line" nam 3"+code=b13dvs" class="sref">b1_dvs3/a>).35 href="drivers/regulator/lp8788-bREGULATOR_MODE_FAST id 
L267" clasREGULATOR_MODE_FASThrefid 
L294" class="line" nam  
L294">.2941/a>13 href="+c3de=err" class="sref">err3/a>;.35 href="drivers/regulator/lp8788-buckk.c#L330" id 
L3k.c#L230" m ; 1a href="+code=LP878FORCE_PWhref="drivers/regulatorFORCE_PWh   1a la>.lamp; 1a href="+codpmap8788_read_byte1pmap 
L3_byte" class="sref">shifid 
L328" class=shifi  
L310">.3101/a>                return -1a href=c+code=b23s="line" nam  
L258">.2531/a>.3a href="drivers/regulator/lp8788-buck.c#L288" id 
L288" class="line" na3e=gpio" c3ass="sref">gpio1/a>) ? 13: 0;.36 href="drivers/regulator/lp8788-bREGULATOR_MODE_NORM
L310" class="linREGULATOR_MODE_NORM
Lhrefid 
L294" class="line" nam  
L294">.2941/a>13
L260">.2301/a>                } e3s  {.3a href="drivers/regulator/lp8788-buckk.c#L330" id 
L3k.c#L230" m ; 1a href="+code=LP878AUTO_PWhref="drivers/regulatorAUTO_PWh   1a la>.lamp; 1a href="+codpmap8788_read_byte1pmap 
L3_byte" class="sref">shifid 
L328" class=shifi  
L310">.3101/a>                return -1a href=href="+co3e=vn>" class="sref">val13a>);.3a href="drivers/regulator/lp8788-buck.c#L288" id 
L288" class="line" na3ehref="+c3sref">LP8788_BUCK1_DVS_S3/a>;.3a href="drivers/regulator/lp8788-buck.c#L289" id 
L289" class="li3" nam  
L363">.2631/a>            3   }.3a href="drivers/regulator/lp8788-buck.c#L310" id 
L310" class="line" nam  
L310">.3101/a>                return -1a href=href="+co3e=idx" class="sref">idx13a>];.3a href="driver="drivers/regulator/lp8788-buck.c#L241" id 
3  
L265">32651/a>                b3eak;.36 href="drivers/regulator/lp8788-buck.c#L186" id 3f="+code=3UCK2" class="sref">BUCK23/a>:.3a href="drivers/regulator/lp8788-buck.c#L312" id 
L312" class="line" nam  
L312">.3121/a>        return 1a href="+code=lp8788_update_bits" class="sref">lp8788_update_bits1/a>(1a href="+code=buckf="+code=lp"PWhref="drivers/regulatore=lp"PWh>(1a href="+code=buckpmap8788_read_byte1pmap 
L3_byte" class="sref">231/a>        return 1a hre href="+code=buckass="sref">lp1/a>,.1a href="+code=addr" class="sref">addr1/a>,.&1a code=EXTP3N" class="sref">EXTPIN1/3>) {.3a href="drivers/regulator/lp8788-buck.c#L241" id 
3 +code=b23de=dvs" class="sref">dvs3/a>;.36 href="drivers/regulator/lp8788-buck.c#L329" id 
"+code=b23dvs" class="sref">b2_dvs3/a>).3a href="driveid 
L299"rs/regulator/lp8788class="#L31_g
L3 href="+code=mode" class="#L31_g
L3 hreef="+code=lp8788_buck12_get_voltage_sel" class="sref">lp8788_buck12_get_voltage_sel1/a>(struct.1a href="+code=regulator_dev" class="sref">regulator_dev1/a> *1a h href="+c3de=err" class="sref">err3/a>;.3a href788-buck.c#L283" id 
L283" class="line" nam 3L271" cla3s="line" nam  
L271">.2731/a>.3a href="drivers/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp8788_buck" class="sref">lp8788_buck1/a> *1a href="+code=buck" class="sref">buck1/a> = 1a href="+code=rdev_get_drvdata" class="sref">rdev_get_drvdata1/a" nam 3Lhref="+c3o" class="sref">gpio1/a>30]);.3a href="drivers/regulator/lp8788-buck.c#L31pwm_map8788_read_byte1/ac#L31pwm_map 
L317">.3171/a>     pmap8788_read_byte1pmap 
L31ne" nam  
L287">.2871href="+code=lp8788_read_byte" class="sref">pmap8788_read_byte1pmap 
L3data" class="sref">rdev_get_drvdata1/a" id 
L"+code=gp3o" class="sref">gpio1/a>31]);.37 href="drivers/regulator/lp8788-buck.c#L320" id 
L320" class="line" nam  
L320">.3201/a>    data" class="sref">rdev_get_drvdata1/a" id 
LL274" cla3s="line" nam  
L274">.2731/a>.3a href="drivers/regulator/lp8788-buck.c#L319" id 
L319" class="line" nam  
L319">.3191/a>        int.1acode=PIN_3OW" class="sref">PIN_LOW3/a>).37 href="drivers/regulator/lp8788-buck.c#L186" id 3f="+code=3dx" class="sref">idx1/a>3= 0;.37 href="drivers/regulator/lp8788-bpmap8788_read_byte1pmap 
L3tor_dev" class="sref">regulator_dev1/a> *1a hde=PIN_HI3H" class="sref">PIN_HIGH3/a>).3a href="drivers/regulator/lp8788-buck.c#L310" id 
L310" class="line" nam  
L310">.3101/a>                return -1a href=f="+code=3dx" class="sref">idx1/a>3= 2;.37 href="drivers/regulator/lp8788-buck.c#L329" id 
code=PIN_3OW" class="sref">PIN_LOW3/a>).38 href="drivers/regulator/lp8788-buck.c#L326" id 
L326" class="line" nam  
L326">.3261/a>        1a href="+code=ret" class="sref">ret1/a> = 1a href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buckf="+code=lp"PWhref="drivers/regulatore=lp"PWh>(1a ha href="+code=lp" class="sref">lp1/a>,.1a href="+code=addr" class="sref">addr1/a>,.&1a f="+code=3dx" class="sref">idx1/a>3= 1;.3a href="drivers/regulator/lp8788-buck.c#L327" id 
L327" class="line" nam  
L327">.3271/a>        if (1a1">.2811/3>                       3els .3a href="drivers/regulator/lp8788-buck.c#L328" id 
L328" class="line" nam  
L328">.3281/a>                return 1af="+code=3dx" class="sref">idx1/a>3= 3;.38 href="drivers/regulator/lp8788-buck.c#L183" id 3
L283">.2331/a>                } e3s  {.38 href="drivers/regulator/lp8788-buc                        1a href="+code=idx" clapmap8788_read_byte1pmap 
L3_byte" class="sref">231/a>        return 1a href="+code=vn>" class="ULATOR_MODE_FAST id 
L267" clasREGULATOR_MODE_FASThrefde=mask" class="srREGULATOR_MODE_NORM
L310" class="linREGULATOR_MODE_NORM
Lhrefnam  
L328">.3281/a>                return 1af274" cla3e=vn>" class="sref">val13a>);.38 href="drivers/regulator/lp8788-buck.c#L241" id 
3S" class=3sref">LP8788_BUCK2_DVS_S3/a>;.38 href="drivers/regulator/lp8788-buck.c#L186" id 3" nam  
L386">.2861/a>            3   }.38 href="drivecode=lp8788_buck12_get_voltage_sop2" class="line" _voltage_sop2 
L320" class="line"315">.3151/a>sop2" class="line" 315">.3151/a>sop2L326" c788-buck.c#L283" id 
L283" class="line" nam 3href="+co3e=idx" class="sref">idx13a>];.3a href="driver.0" class="line"3istic int.1" class="line" 3istic int.1e=lp8788_buck" class="svoltage_s3istic int.1_table" class="line" _voltage_s3istic int.1_table>(1a 88-buck.c#L283" id 
L283" class="line" nam 3h="+code=32881/a>                b3eak;.3a href="driver.0" class="line"id 
L298" class="line" nam  
Ltatic int.1a href="" class="line" nam  
L326151/a>sid 
L298" class="line" nam  
L298">.2981/a>static int.1a href=" 88-buck.c#L283" id 
L283" class="line" nam 3e" nam  
3289">.2891/a>        def3ult:.3a href="driver.0" class="line"id 
L315" class="line" nam  
Ltatic int.1a href="" class="line" nam  
L326151/a>sid 
L315" class="line" nam  
L315">.3151/a>static int.1a href=" 88-buck.c#L283" id 
L283" class="line" nam 3e="+code=3de=err" class="sref">err3/a>;.3a href="driver.0" class="line"enable="line" nam  
Lenablee=lp8788_buck" class="svoltage_senable_svomap8788_read_byte1svoltage_senable_svomapef=" 88-buck.c#L283" id 
L283" class="line" nam 3e">.2811/3nam  
L291">.2911/a>    3   }.392href="driver.0" class="line"disable="line" nam  
Ldisablee=lp8788_buck" class="svoltage_sdisable_svomap8788_read_byte1svoltage_sdisable_svomapef=" 88-buck.c#L283" id 
L283" class="line" nam 3e="+code=3s="line" nam  
L292">.2931/a>.3a href="driver.0" class="line"issenablenum.1a href="+codssenablene=lp8788_buck" class="svoltage_sdssenablen_svomap8788_read_byte1svoltage_sdssenablen_svomapef=" 88-buck.c#L283" id 
L283" class="line" nam 3eL283">.23=addr" class="sref">addr3/a>;.394href="driver.0" class="line"enable_tima>        1a hreenable_timaef="" class="line" nam  
L326151/_enable_tima>        1a href="+cod#L31_enable_timaef=" 88-buck.c#L283" id 
L283" class="line" nam 3e274" cla3de=err" class="sref">err3/a>:.3a href="driver.0" class="line"id 
 href="+code=mode"  
L3 hreef="" class="line" nam  
L326151/_ 
L3 href="+code=mode" class="#L31_ 
L3 hreef=" 88-buck.c#L283" id 
L283" class="line" nam 3e" class=3lass="sref">INVALID_ADDR3/a>;.396href="driver.0" class="line"id 
 href="+code=mode" g
L3 hreef="" class="line" nam  
L326151/_g
L3 href="+code=mode" class="#L31_g
L3 hreef=" 88-buck.c#L283" id 
L283" class="line" nam 3e nam  
L3="line" nam  
L296">.2963/a>}.3a href}nam  
L328">.3281/a>                return 1aL297" cla3s="line" nam  
L297">.2931/a>.39 href="drivers/regulator/lp8788-buck.c#L258" id 3ref="+cod3=rdev" class="sref">rdev3/a>,.3a href="drivecode=lp8788_buck12_get_voltage_sop2" class="line" _voltage_sop2 
L320" class="line"315">.3151/34sop2" class="line" 315">.3151/34sop2L326" c788-buck.c#L283" id 
L283" class="line" nam 4de=select4r" class="sref">selector4/a>).40 href="driver.0" class="line"3istic int.1" class="line" 3istic int.1e=lp8788_buck" class="svoltage_s3istic int.1_table" class="line" _voltage_s3istic int.1_table>(1a 88-buck.c#L283" id 
L283" class="line" nam 4300" clas4="line" nam  
L300">.3004/a>{.40 href="driver.0" class="line"id 
L298" class="line" nam  
Ltatic int.1a href="" class="line" nam_voltage_static int.1a hr_svomap8788_read_byte1svoltage_static int.1a hr_svomap>(1a 88-buck.c#L283" id 
L283" class="line" nam 4320" clas4=am  
L291">.2911/a>    4a>);.402href="driver.0" class="line"id 
L315" class="line" nam  
Ltatic int.1a href="" class="line" namsvoltage_sgatic int.1a hr_svomap8788_read_byte1svoltage_sgatic int.1a hr_svomap>(1a 88-buck.c#L283" id 
L283" class="line" nam 4330" clas4=="line" nam  
L292">.294a>);.40 href="driver.0" class="line"enable="line" nam  
Lenablee=lp8788_buck" class="svoltage_senable_svomap8788_read_byte1svoltage_senable_svomapef=" 88-buck.c#L283" id 
L283" class="line" nam 4ref="+cod4=addr" class="sref">addr4/a>;.404href="driver.0" class="line"disable="line" nam  
Ldisablee=lp8788_buck" class="svoltage_sdisable_svomap8788_read_byte1svoltage_sdisable_svomapef=" 88-buck.c#L283" id 
L283" class="line" nam 4L304" cla4s="line" nam  
L304">.3041/a>.40 href="driver.0" class="line"issenablenum.1a href="+codssenablene=lp8788_buck" class="svoltage_sdssenablen_svomap8788_read_byte1svoltage_sdssenablen_svomapef=" 88-buck.c#L283" id 
L283" class="line" nam 4 href="+c4de=dvs" class="sref">dvs4/a>).406href="driver.0" class="line"enable_tima>        1a hreenable_timaef="" class="line" nam  
L326151/_enable_tima>        1a href="+cod#L31_enable_timaef=" 88-buck.c#L283" id 
L283" class="line" nam 4a href="+4ode=id" class="sref">id14a>);.407href="driver.0" class="line"id 
 href="+code=mode"  
L3 hreef="" class="line" nam  
L326151/_ 
L3 href="+code=mode" class="#L31_ 
L3 hreef=" 88-buck.c#L283" id 
L283" class="line" nam 4L307" cla4s="line" nam  
L307">.3041/a>.40 href="driver.0" class="line"id 
 href="+code=mode" g
L3 hreef="" class="line" nam  
L326151/_g
L3 href="+code=mode" class="#L31_g
L3 hreef=" 88-buck.c#L283" id 
L283" class="line" nam 4a href="+4ode=id" class="sref">id14a>);.4a href}nam  
L328">.3281/a>                return 14ef="+code4addr" class="sref">addr14a>)).4a hrefam  
L328">.3281/a>                return 14e00" clas4VAL" class="sref">EINVAL4/a>;.4a href="drivecode=lp8788_buck12_get_voltage_sdesc class="sref">lp8788_buck12sc 
L320" class="line"315">.3151/sdesc class="sref">l315">.3151/sdesc 
L3[]" c788-buck.c#L283" id 
L283" class="line" nam 4L311" cla4s="line" nam  
L311">.3141/a>.4a href="driver788-buck.c#L283" id 
L283" class="line" nam 4L30" clas4" class="sref">selector14a>);.41 href="drivers/regula.0" class="line"lect class="sref">llectef="" clspanclass="srtring">"151/a".3134/a>}.41 href="drivers/regula.0" class="line"inum.1a href="+code=lp8788_buck_id" classuck.c#L253" id 
L253" class=" 88-buck.c#L283" id 
L283" class="line" nam 43304" cla4s="line" nam  
L314">.3141/a>.41 href="drivers/regula.0" class="line"op2" class="line" op2L326" ca href="+code=lp" cl315">.3151/a>sop2" class="line" 315">.3151/a>sop2L326 88-buck.c#L283" id 
L283" class="line" nam 43href="+c4=rdev" class="sref">rdev4/a>).41 href="drivers/regula.0" class="line"lic int.12" class="line" lic int.12=lp8788_buck_id" classARRAY_SIZE" class="line" ARRAY_SIZEass="sref">ret1/a> =315">.3151/svtbs="line" nam  
L315">.3151/svtbs" cla 88-buck.c#L283" id 
L283" class="line" nam 43 href="+4="line" nam  
L316">.3164/a>{.41 href="drivers/regula.0" class="line"c in_table" class="line" c in_tableef="" class="line" nam  
L326151/_vtbs="line" nam  
L315">.3151/svtbs" cl 88-buck.c#L283" id 
L283" class="line" nam 43307" cla4rdev" class="sref">rdev14a>);.41 href="drivers/regula.0" class="line"type" class="line" typeef="" class="line" namREGULATOR_VOLTAGE" class="line" REGULATOR_VOLTAGE" cl 88-buck.c#L283" id 
L283" class="line" nam 43 href="+4rdev" class="sref">rdev14a>);.41 href="drivers/regula.0" class="line"ownelass="sref">buckownelef="" class="line" namTHIS_MODULE" class="line" THIS_MODULE" cl 88-buck.c#L283" id 
L283" class="line" nam 4 href="+c4de=ret" class="sref">ret4/a>;.42 href="drivers/regula.0" class="line"enable_ 
L>        1a hreenable_ 
Lef="" class="line" namgulatorENre=lpref="drivers/regulatorENre=lp" cl 88-buck.c#L283" id 
L283" class="line" nam 4 00" clas4=addr" class="sref">addr4/a>;.42 href="drivers/regula.0" class="line"enable_231/a>        returenable_231/ef="" class="line" namgulatorENre=lp1 href="drivers/regulatorENre=lp1 h" cl 88-buck.c#L283" id 
L283" class="line" nam 4 311" cla4s="line" nam  
L321">.3241/a>.4a href="driver} 88-buck.c#L283" id 
L283" class="line" nam 4 30" clas4ode=id" class="sref">id14a>);.4a href="driver788-buck.c#L283" id 
L283" class="line" nam 4ef="+code4addr" class="sref">addr14a>)).4a href="drivers/regula.0" class="line"lect class="sref">llectef="" clspanclass="srtring">"151/2"EINVAL4/a>;.42 href="drivers/regula.0" class="line"inum.1a href="+code=lp8788_buck_id" classuck.c#L266" id 
L266" class=" 88-buck.c#L283" id 
L283" class="line" nam 4"href="+c4s="line" nam  
L325">.3241/a>.42 href="drivers/regula.0" class="line"op2" class="line" op2L326" ca href="+code=lp" cl315">.3151/a>sop2" class="line" 315">.3151/a>sop2L326 88-buck.c#L283" id 
L283" class="line" nam 4href="+co4e=vn>" class="sref">val14a>);.42 href="drivers/regula.0" class="line"lic int.12" class="line" lic int.12=lp8788_buck_id" classARRAY_SIZE" class="line" ARRAY_SIZEass="sref">ret1/a> =315">.3151/svtbs="line" nam  
L315">.3151/svtbs" cla 88-buck.c#L283" id 
L283" class="line" nam 4 href="+c4de=ret" class="sref">ret4/a>).4a href="drivers/regula.0" class="line"c in_table" class="line" c in_tableef="" class="line" nam  
L326151/_vtbs="line" nam  
L315">.3151/svtbs" cl 88-buck.c#L283" id 
L283" class="line" nam 4 href="+c4de=ret" class="sref">ret4/a>;.42 href="drivers/regula.0" class="line"type" class="line" typeef="" class="line" namREGULATOR_VOLTAGE" class="line" REGULATOR_VOLTAGE" cl 88-buck.c#L283" id 
L283" class="line" nam 4L329" cla4s="line" nam  
L329">.3241/a>.43 href="drivers/regula.0" class="line"ownelass="sref">buckownelef="" class="line" namTHIS_MODULE" class="line" THIS_MODULE" cl 88-buck.c#L283" id 
L283" class="line" nam 4330r href4sref">LP8788_BUCK1_VOUT14/a>:.43 href="drivers/regula.0" class="line"enable_ 
L>        1a hreenable_ 
Lef="" class="line" namgulatorENre=lpref="drivers/regulatorENre=lp" cl 88-buck.c#L283" id 
L283" class="line" nam 42" class=4sref">LP8788_BUCK1_VOUT24/a>:.43 href="drivers/regula.0" class="line"enable_231/a>        returenable_231/ef="" class="line" namgulatorENre=lp2 href="drivers/regulatorENre=lp2 h" cl 88-buck.c#L283" id 
L283" class="line" nam 43" class=4sref">LP8788_BUCK1_VOUT34/a>:.433href="driver} 88-buck.c#L283" id 
L283" class="line" nam 40" class=4sref">LP8788_BUCK2_VOUT04/a>:.434href="driver788-buck.c#L283" id 
L283" class="line" nam 41" class=4sref">LP8788_BUCK2_VOUT14/a>:.43 href="drivers/regula.0" class="line"lect class="sref">llectef="" clspanclass="srtring">"151/3"LP8788_BUCK2_VOUT24/a>:.43 href="drivers/regula.0" class="line"inum.1a href="+code=lp8788_buck_id" classuck.3#L266" id 
L266" cl3" cl 88-buck.c#L283" id 
L283" class="line" nam 43ref="+co4sref">LP8788_BUCK2_VOUT34/a>:.43 href="drivers/regula.0" class="line"op2" class="line" op2L326" ca href="+code=lp" cl315">.3151/34sop2" class="line" 315">.3151/34sop2L326 88-buck.c#L283" id 
L283" class="line" nam 43href="+c4=tr
 " class="sref">tr
 4/a>;.43 href="drivers/regula.0" class="line"lic int.12" class="line" lic int.12=lp8788_buck_id" classARRAY_SIZE" class="line" ARRAY_SIZEass="sref">ret1/a> =315">.3151/svtbs="line" nam  
L315">.3151/svtbs" cla 88-buck.c#L283" id 
L283" class="line" nam 4e" nam  
4238">.2381/a>        def4ult:.43 href="drivers/regula.0" class="line"c in_table" class="line" c in_tableef="" class="line" nam  
L326151/_vtbs="line" nam  
L315">.3151/svtbs" cl 88-buck.c#L283" id 
L283" class="line" nam 4f="+code=4als " class="sref">fals 4/a>;.44 href="drivers/regula.0" class="line"type" class="line" typeef="" class="line" namREGULATOR_VOLTAGE" class="line" REGULATOR_VOLTAGE" cl 88-buck.c#L283" id 
L283" class="line" nam 4ss="line"4nam  
L240">.2401/a>    4   }.44 href="drivers/regula.0" class="line"ownelass="sref">buckownelef="" class="line" namTHIS_MODULE" class="line" THIS_MODULE" cl 88-buck.c#L283" id 
L283" class="line" nam 4241" clas4="line" nam  
L241">.2414/a>}.44 href="drivers/regula.0" class="line"v hr_svo" class="line" c hr_svoef="" class="line" namgulator" cl3r/lp8ref="drivers/regulator" cl3r/lp8" cl 88-buck.c#L283" id 
L283" class="line" nam 42" class=4s="line" nam  
L242">.2441/a>.44 href="drivers/regula.0" class="line"c hr_231/a>        returc hr_231/ef="" class="line" namgulators="sref">lp1/a>,.1a href="+code=addr" c88-buck.c#L283" id 
L283" class="line" nam 42" class=4=buck" class="sref">buck4/a>,.44 href="drivers/regula.0" class="line"enable_ 
L>        1a hreenable_ 
Lef="" class="line" namgulatorENre=lpref="drivers/regulatorENre=lp" cl 88-buck.c#L283" id 
L283" class="line" nam 4s" class=4code=id" class="sref">id4/a>).44 href="drivers/regula.0" class="line"enable_231/a>        returenable_231/ef="" class="line" namgulatorENre=lp3 href="drivers/regulatorENre=lp3addr" c88-buck.c#L283" id 
L283" class="line" nam 42325" cla4="line" nam  
L245">.2454/a>{.44 href="driver} 88-buck.c#L283" id 
L283" class="line" nam 4a href="+4ode=id" class="sref">id14a>);.44 href="driver788-buck.c#L283" id 
L283" class="line" nam 4fhref="+c4dvs" class="sref">b1_dvs4/a>;.44 href="drivers/regula.0" class="line"lect class="sref">llectef="" clspanclass="srtring">"151/4"b2_dvs4/a>;.44 href="drivers/regula.0" class="line"inum.1a href="+code=lp8788_buck_id" classuck.4um.1a href="+couck.4dr" c88-buck.c#L283" id 
L283" class="line" nam 4ref="+cod4=addr" class="sref">addr4/a>;.45 href="drivers/regula.0" class="line"op2" class="line" op2L326" ca href="+code=lp" cl315">.3151/34sop2" class="line" 315">.3151/34sop2L326 88-buck.c#L283" id 
L283" class="line" nam 4rs="line"4=pin2" class="sref">pin24/a>;.45 href="drivers/regula.0" class="line"lic int.12" class="line" lic int.12=lp8788_buck_id" classARRAY_SIZE" class="line" ARRAY_SIZEass="sref">ret1/a> =315">.3151/svtbs="line" nam  
L315">.3151/svtbs" cla 88-buck.c#L283" id 
L283" class="line" nam 4r41" clas4s="line" nam  
L251">.2541/a>.45 href="drivers/regula.0" class="line"v in_table" class="line" c in_tableef="" class="line" nam  
L326151/_vtbs="line" nam  
L315">.3151/svtbs" cl 88-buck.c#L283" id 
L283" class="line" nam 4 href="+c4de=id" class="sref">id1/4>) {.45 href="drivers/regula.0" class="line"type" class="line" typeef="" class="line" namREGULATOR_VOLTAGE" class="line" REGULATOR_VOLTAGE" cl 88-buck.c#L283" id 
L283" class="line" nam 4f="+code=4UCK1" class="sref">BUCK14/a>:.4a href="drivers/regula.0" class="line"ownelass="sref">buckownelef="" class="line" namTHIS_MODULE" class="line" THIS_MODULE" cl 88-buck.c#L283" id 
L283" class="line" nam 4code=EXTP4N" class="sref">EXTPIN1/4>) {.45 href="drivers/regula.0" class="line"v hr_svo" class="line" c hr_svoef="" class="line" namgulator" cl4r/lp8ref="drivers/regulator" cl4r/lp8" cl 88-buck.c#L283" id 
L283" class="line" nam 4 href="+c4de=dvs" class="sref">dvs4/a>;.45 href="drivers/regula.0" class="line"c hr_231/a>        returc hr_231/ef="" class="line" namgulators="sref">lp1/a>,.1a href="+code=addr" c88-buck.c#L283" id 
L283" class="line" nam 4"+code=b14dvs" class="sref">b1_dvs4/a>).45 href="drivers/regula.0" class="line"enable_ 
L>        1a hreenable_ 
Lef="" class="line" namgulatorENre=lpref="drivers/regulatorENre=lp" cl 88-buck.c#L283" id 
L283" class="line" nam 4 href="+c4de=err" class="sref">err4/a>;.45 href="drivers/regula.0" class="line"enable_231/a>        returenable_231/ef="" class="line" namgulatorENre=lp4 href="drivers/regulatorENre=lp4addr" c88-buck.c#L283" id 
L283" class="line" nam 4"+code=b24s="line" nam  
L258">.2541/a>.4a href="driver} 88-buck.c#L283" id 
L283" class="line" nam 4e=gpio" c4ass="sref">gpio1/a>) ? 14: 0;.46 href}nam  
L328">.3281/a>                return 14
L260">.2401/a>                } e4s  {.46 href="drivers/regulator/lp8788-buck.c#L321" id 4href="+co4e=vn>" class="sref">val14a>);.4a href="drivers/regulator/lp8788-buck.c 
L30/regul306"_ctrl3 href="+code=mode" class=" 
L30/regul306"_ctrl3 hreass="s/regulator/lp8788-buck.c#L3f="+code=mode" class=href=7">.3171/a>     lp8788_read_byte1/a>(1a ="drivers/regulator/lp8788-buck.c#L321" id 4hhref="+c4sref">LP8788_BUCK1_DVS_S4/a>;.46 href="drivers/regulaaaaaaaaaaaaaaaaaaaaaaaaas/regulator/lp8788-buck.c#L318" id 
L318" class="line" nam  
L318">.3181/a>        enum.1a href="+code=lp8ass="line" nam  
L327">.3271/a>        if (14" nam  
L463">.2631/a>            4   }.46 href="drivers/regulator/lp8788-buck.c#L316" id 
4href="+co4e=idx" class="sref">idx14a>];.4a href="driver3181/a>        788-buck.c#L320" id 
L320" class="line"231/a>        return 1a hre href="+code=buckass="sref">lp1/a>,.1a hrenam  
L328">.3281/a>                return 14
href="+c42651/a>                b4eak;.46 href="drivers/regulator/lp8788-buck.c#L186" id 4f="+code=4UCK2" class="sref">BUCK24/a>:.4a href="drivers/regulator/lp8788-buckenum.1a href="+code=lp8ar788-buck.c#L283" id 
L283" class="line" nam 4code=EXTP4N" class="sref">EXTPIN1/4>) {.46 href="drivers/regulator/lp8788-buck.c#L253" id 
L253" class="ator/lp8788-buck.c#L289" id 
L289" class="li4 +code=b24de=dvs" class="sref">dvs4/a>;.46 href="drivers/regula0" class="line"231/a>        return 1a hreine" nam  
L212">.2121/a>      DVS_SEL href="drivers/regulator      DVS_SEL h hrenam  
L328">.3281/a>                return 14"+code=b24dvs" class="sref">b2_dvs4/a>).47 href="drivers/regularef="+code=buckass="sref">lp1/a>,.1a hre ine" nam  
L212">.2121/a>      DVS_I2C310" class="lin2121/a>      DVS_I2C hrenam  
L328">.3281/a>                return 14"L260">.24de=err" class="sref">err4/a>;.47 href="drivers/regulator/lp8788-buck.c#L288" id 
L288" class="line" na4L271" cla4s="line" nam  
L271">.2741/a>.4a href="drivers/regulator/lp8788-buck.c#L266" id 
L266" class="ator/lp8788-buck.c#L289" id 
L289" class="li4Lhref="+c4o" class="sref">gpio1/a>40]);.47 href="drivers/regula0" class="line"231/a>        return 1a hreine" nam  
L212">.2121/a>    2 DVS_SEL href="drivers/regulator    2 DVS_SEL h hrenam  
L328">.3281/a>                return 14" nam  
L4o" class="sref">gpio1/a>41]);.47 href="drivers/regularef="+code=buckass="sref">lp1/a>,.1a hre ine" nam  
L212">.2121/a>    2 DVS_I2C310" class="lin2121/a>    2 DVS_I2C hrenam  
L328">.3281/a>                return 14"ref="+co4s="line" nam  
L274">.2741/a>.47 href="drivers/regulator/lp8788-buck.c#L288" id 
L288" class="line" na4Lhref="+c4OW" class="sref">PIN_LOW4/a>).47 href="drivers/regulator/lp8788-buck.c#L289" id 
L289" class="li4f="+code=4dx" class="sref">idx1/a>4= 0;.47 href="drivers/regulas/regul0p8788-buck.c#L288" id 
L288" class="line" na4Lode=EXTP4H" class="sref">PIN_HIGH4/a>).4a href="driver="drivers/regulator/lp8788-buck.c#L241" id 
4f="+code=4dx" class="sref">idx1/a>4= 2;.47 href="drivers/regulator/lp8788-buck.c#L329" id 4code=PIN_4OW" class="sref">PIN_LOW4/a>).48 href="drivers/regulator/lp8788-buck.c#L312" id 
L312" class="line" nam  
L312">.3121/a>        return 1a lp8788_read_byte1/a>(1a href="+code=buckf="+code=lp"DVS_SEL310" class="lin2121/a>    "DVS_SEL>(1a href="+code=buck231/a>        return 1a hre href="+code=buckass="sref">lp1/a>,.1a href="+code=addr" class="sref">addr1/a>,.&1a4f="+code=4dx" class="sref">idx1/a>4= 1;.48 href="drivers/regulator/lp8788-buck.c#L241" id 
41">.2811/4>                       4els .48 href="drivers/regulator/lp8788-buck.c#L292" id 4f="+code=4dx" class="sref">idx1/a>4= 3;.48 href="drivers/regulator/lp8788_gpio_requesid 
L328" class=_gpio_requesiass="s/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp,ers/regulator/lp8788gpiotruct.1a href="gpioe=lp,echar17">.3171/a>     lect class="sref">llectef="ass="line" nam  
L327">.3271/a>        if (14
L283">.2431/a>                } e4s  {.48 href="drivers/regulator/lp8788-buck.c#L316" id 
4f274" cla4e=vn>" class="sref">val14a>);.48 href="drivers/regulator/lp8788-bucdevict class="sref">ldevict 
L317">.3171/a>     1a href="+code=rde12_get_vne" nam  
L287">.2871href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a_byte" class="sref">1a href="+code=rde12_get_="+code=addr" class="sref">addr1/a>,.&1a4fhref="+c4sref">LP8788_BUCK2_DVS_S4/a>;.48 href="drivers/regulator/lp8788-buck.c#L186" id 4" nam  
L486">.2861/a>            4   }.48 href="drivers/regulator/lp8788-bgpio_.3231/a>truct.1a href="gpio_.3231/a>a>        return 1a gpiotruct.1a href="gpioe=lp)ar788-buck.c#L283" id 
L283" class="line" nam 4href="+co4e=idx" class="sref">idx14a>];.48 href="drivers/regulator/lp8788-buck+coderlass="sref">buck+coderla>        return 1a 1a href="+code=rde12_get_,clspanclass="srtring">"in31/a> gpio: %d\n"addr1/a>,.&1a4f="+code=42881/a>                b4eak;.48 href="drivers/regulator/lp8788-buck.c#L310" id 
L310" class="line" nam  
L310">.3101/a>                return -1a href4e" nam  
4289">.2891/a>        def4ult:.4a href="driver="drivers/regulator/lp8788-buck.c#L241" id 
4e="+code=4de=err" class="sref">err4/a>;.49 href="drivers/regulator/lp8788-buck.c#L321" id 4e">.2811/4nam  
L291">.2911/a>    4   }.492href="drivers/regulator/lp8788-buc12_m_gpio_requesi_ont class="sref">ldevm_gpio_requesi_onta>        return 1a 1a href="+code=rde12_get_,clgulator/lp8788gpiotruct.1a href="gpioe=lp,elgulator/lp8788DVS_LOWtruct.1a href="DVS_LOWe=lp,elgulator/lp8788lect class="sref">llectef="a310">.3101/a>                return -1a href4e="+code=4s="line" nam  
L292">.2941/a>.4a href="drivers/regulator/lp8788-buck.c#L241" id 
4eL283">.24=addr" class="sref">addr4/a>;.494href"drivers/regulator/lp8788-buck.c#L241" id 
4e274" cla4de=err" class="sref">err4/a>:.4a href="drivers/regulator/lp8788-buck.c06"_gpio_requesid 
L328" class=-buck.c06"_gpio_requesiass="s/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp,"drivers/regulator/lp8788-buck.c#L241" id 
4ehref="+c4lass="sref">INVALID_ADDR4/a>;.49 href="drivers/regulaaaaaaaaaaaaaaaaas/regulator/lp8788-buck.c#L318" id 
L318" class="line" nam  
L318">.3181/a>        enum.1a href="+code=lp8ass="line" nam  
L327">.3271/a>        if (14e nam  
L4="line" nam  
L296">.2964/a>}.4a href788-buck.c#L283" id 
L283" class="line" nam 4L297" cla4s="line" nam  
L297">.2941/a>.49 href="drivers/regulator/lp8788-buck.c#L31p83"form__buck1/a> *1a href=k.c#L31p83"form__buc 
L317">.3171/a>     p_buck1/a> *1a href=p_buc 
L31ne" nam  
L287">.2871href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a_byte" class="sref">p_buck1/a> *1a href=p_buc 
L3310">.3101/a>                return -1a href4e="+code=4=rdev" class="sref">rdev4/a>,.49 href="driverchar17">.3171/a>     b1_lect class="sref">lb1_lectef="" clspanclass="srtring">"2121/a>   DVS".3101/a>                return -1a href5de=select5r" class="sref">selector5/a>).50 href="driverchar17">.3171/a>     b2_lect class="sref">lb2_lectef="[]" c7clspanclass="srtring">"2121/a> 2 DVS1""2121/a> 2 DVS2".3281/a>                return 15300" clas5="line" nam  
L300">.3005/a>{.50 href="driverrs/regulator/lp8788ium.1a href="+codget_,clgulator/lp8788gpiotruct.1a href="gpioe=lp,elgulator/lp8788" id 
L328" class="line" nam  
L328">.3281/a>                return 15320" clas5=am  
L291">.2911/a>    5a>);.50 href="drivers/regulator/lp8788-buck.c#L292" id 5330" clas5=="line" nam  
L292">.295a>);.50 href="drivers/regulator/lp8788-buckenum.1a href="+code=lp8ar788-buck.c#L283" id 
L283" class="line" nam 5ref="+cod5=addr" class="sref">addr5/a>;.504href="drivers/regulator/lp8788-buck.c#L253" id 
L253" class="ator/lp8788-buck.c#L289" id 
L289" class="li5L304" cla5s="line" nam  
L304">.3051/a>.50 href="drivers/regulalgulator/lp8788gpiotruct.1a href="gpioe=lp1ne" nam  
L287">.p_buck1/a> *1a href=p_buc 
L3_byte" class="sref">151/ac06"href="+code=lp8788_ac06" 
L3_byte" class="sref">gpiotruct.1a href="gpioe=lpnam  
L328">.3281/a>                return 153604" cla5sass="sref">INVALID_ADDR5/a>).50 href="drivers/regulalgulator/lp8788" id 
L328" class="line" 1ne" nam  
L287">._gpio_requesid 
L328" class=_gpio_requesiass="">.3171/a>        struct.1a href="+code=lp,elgulator/lp8788gpiotruct.1a href="gpioe=lp,elgulator/lp8788b1_lect class="sref">lb1_lectef="a310">.3101/a>                return -1a href5a href="+5ode=id" class="sref">id15a>);.50 href="drivers/regulas/regulator/lp8788-buck.c#L327" id 
L327" class="line" nam  
L327">.3271/a>        if (15L307" cla5s="line" nam  
L307">.3051/a>.50 href="drivers/regulaaaaaaaaator/lp8788-buck.c#L328" id 
L328" class="line" nam  
L328">.3281/a>                return 15a href="+5ode=id" class="sref">id15a>);.50 href="drivers/regulator/lp8788-buck.c#L329" id 5ef="+code5addr" class="sref">addr15a>)).51 href="drivers/regularef="+code=buck2871href="+code=lp8788_read_byte" class="sref">06"href="+code=lp806" 
L31ne" nam  
L287">.p_buck1/a> *1a href=p_buc 
L3_byte" class="sref">151/ac06"href="+code=lp8788_ac06" 
L3nam  
L328">.3281/a>                return 15e00" clas5VAL" class="sref">EINVAL5/a>;.51 href="drivers/regulator/lp8788-buck.c#L288" id 
L288" class="line" na5L311" cla5s="line" nam  
L311">.3151/a>.51 href="drivers/regulator/lp8788-buck.c#L266" id 
L266" class="ator/lp8788-buck.c#L289" id 
L289" class="li5L30" clas5" class="sref">selector15a>);.51 href="drivers/regulaforlator/lp8788-buckeum.1a href="+codget_1ne0 f="+code=idx" claeum.1a href="+codget_1.lamp; 1a href="+cod2121/a>NUM>    2 DVS310" class="lin2121/a>NUM>    2 DVSget_1f="+code=idx" claeum.1a href="+codget_++ar788-buck.c#L283" id 
L283" class="line" nam 5313" clas5="line" nam  
L313">.3135/a>}.51 href="drivers/regulas/regulalgulator/lp8788gpiotruct.1a href="gpioe=lp1ne" nam  
L287">.p_buck1/a> *1a href=p_buc 
L3_byte" class="sref">151/2c06"href="+code=lp8788_2c06" 
L3_byte" class="sref">gpiotruct.1a href="gpioe=lp["+code=idx" claeum.1a href="+codget_]p8788-buck.c#L288" id 
L288" class="line" na5L304" cla5s="line" nam  
L314">.3151/a>.51 href="drivers/regulas/regulalgulator/lp8788" id 
L328" class="line" 1ne" nam  
L287">._gpio_requesid 
L328" class=_gpio_requesiass="">.3171/a>        struct.1a href="+code=lp,elgulator/lp8788gpiotruct.1a href="gpioe=lp,elgulator/lp8788b2_lect class="sref">lb2_lectef="["+code=idx" claeum.1a href="+codget_]a310">.3101/a>                return -1a href53href="+c5=rdev" class="sref">rdev5/a>).51 href="drivers/regulaaaaaaaaas/regulator/lp8788-buck.c#L327" id 
L327" class="line" nam  
L327">.3271/a>        if (153 href="+5="line" nam  
L316">.3165/a>{.51 href="drivers/regulaaaaaaaaaaaaaaaaator/lp8788-buck.c#L328" id 
L328" class="line" nam  
L328">.3281/a>                return 153307" cla5rdev" class="sref">rdev15a>);.51 href="drivers/regula="drivers/regulator/lp8788-buck.c#L241" id 
53 href="+5rdev" class="sref">rdev15a>);.51 href="drivers/regularef="+code=buck2871href="+code=lp8788_read_byte" class="sref">06"href="+code=lp806" 
L31ne" nam  
L287">.p_buck1/a> *1a href=p_buc 
L3_byte" class="sref">151/2c06"href="+code=lp8788_2c06" 
L3nam  
L328">.3281/a>                return 15 href="+c5de=ret" class="sref">ret5/a>;.52 href="drivers/regulator/lp8788-buck.c#L288" id 
L288" class="line" na5 00" clas5=addr" class="sref">addr5/a>;.52 href="drivers/regulator/lp8788-buck.c#L289" id 
L289" class="li5 311" cla5s="line" nam  
L321">.3251/a>.52 href="drivers/regulator/lp8788-buck.c#L288" id 
L288" class="line" na5 30" clas5ode=id" class="sref">id15a>);.5a href="driver="drivers/regulator/lp8788-buck.c#L241" id 
5ef="+code5addr" class="sref">addr15a>)).524href"drivers/regulator/lp8788-buck.c#L241" id 
5"+code=EI5VAL" class="sref">EINVAL5/a>;.52 href="drivers/regul0p8788-buck.c#L288" id 
L288" class="line" na5"href="+c5s="line" nam  
L325">.3251/a>.52 href="drivers/regulator/lp8788-buck.c#L241" id 
5e href="+5e=vn>" class="sref">val15a>);.52 href"drivers/regulator/lp8788-buck.c#L241" id 
5e307" cla5de=ret" class="sref">ret5/a>).5a href="drivers/regulator/lp8788-buck.cinitc06"href="+code=lp8-buck.cinitc06"ass="s/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp,es/regulator/lp8788-buck.c#L318" id 
L318" class="line" nam  
L318">.3181/a>        enum.1a href="+code=lp8ass="line" nam  
L327">.3271/a>        if (15 href="+c5de=ret" class="sref">ret5/a>;.52 href788-buck.c#L283" id 
L283" class="line" nam 5L329" cla5s="line" nam  
L329">.3251/a>.53 href="drivers/regulator/lp8788-buck.c#L31p83"form__buck1/a> *1a href=k.c#L31p83"form__buc 
L317">.3171/a>     p_buck1/a> *1a href=p_buc 
L31ne" nam  
L287">.2871href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a_byte" class="sref">p_buck1/a> *1a href=p_buc 
L3310">.3101/a>                return -1a href5330r href5sref">LP8788_BUCK1_VOUT15/a>:.53 href="driver" class="sref">788-buck.c#L320" id 
L320" class="line"231/a>        return 1a hre[]" c7cl 1a href="+cod2121/a>      DVS_SEL href="drivers/regulator      DVS_SEL h hre href="+code=buckf="+code=lp2 DVS_SEL href="drivers/regulator    2 DVS_SEL h hre }nam  
L328">.3281/a>                return 152" class=5sref">LP8788_BUCK1_VOUT25/a>:.53 href="driver" class="sref">788-buck.c#L320" id 
L320" class="line"ass="sref">lp1/a>,.1a hre[]"" c7cl 1a href="+cod2121/a>      DVS_PINref="drivers/regulator      DVS_PIN hre href="+code=buckf="+code=lp2 DVS_PINref="drivers/regulator    2 DVS_PIN hre }nam  
L328">.3281/a>                return 15230" clas5sref">LP8788_BUCK1_VOUT35/a>:.53 href="drivers/regulator/lp8788-buck.c#L183" id 50" class=5sref">LP8788_BUCK2_VOUT05/a>:.534href="driverespanclass="scomment">/* no 06"aforl183"3, 4 */LP8788_BUCK2_VOUT15/a>:.53 href="drivers/regulator/lp8788-inum.1a href="+code=lp87888_buck_id" classuck.3#L266" id 
L266" cl3" cl ||.3181/a>        enum.1a href="+code=lp87888_buck_id" classuck.4um.1a href="+couck.4dr" ass="line" nam  
L327">.3271/a>        if (151325" cla5sref">LP8788_BUCK2_VOUT25/a>:.53 href="drivers/regulas/regul0p8788-buck.c#L288" id 
L288" class="line" na53ref="+co5sref">LP8788_BUCK2_VOUT35/a>:.53 href"drivers/regulator/lp8788-buck.c#L241" id 
53href="+c5=tr
 " class="sref">tr
 5/a>;.53 href="driverespanclass="scomment">/* no 06"ap83"form _buc, then 06"awill be selected by I2Cas/gistato */.2381/a>        def5ult:.53 href="drivers/regulator/lp8788-bp_buck1/a> *1a href=p_buc 
L3ass="line" nam  
L327">.3271/a>        if (15f="+code=5als " class="sref">fals 5/a>;.54 href="drivers/regulagoto8_buck_id" class 
L30/regul306"_ href="+code=mode"  
L30/regul306"_ hre 
L3310">.3101/a>                return -1a href5ss="line"5nam  
L240">.2401/a>    5   }.54 href="drivers/regulator/lp8788-buck.c#L321" id 5241" clas5="line" nam  
L241">.2415/a>}.54 href="drivers/reegulator/lp8788-inum.1a href="+code=lp87888_buck_id" classuck.c#L253" id 
L253" class="ca hre href=gulator/lp8788-bp_buck1/a> *1a href=p_buc 
L3_byte" class="sref">151/ac06"href="+code=lp8788_ac06" 
L3) ||="drivers/regulator/lp8788-buck.c#L321" id 5230" clas5s="line" nam  
L242">.2451/a>.54 href="drivers/regulaegulator/lp8788-inum.1a href="+code=lp87888_buck_id" classuck.c#L266" id 
L266" class="ca hre href=gulator/lp8788-bp_buck1/a> *1a href=p_buc 
L3_byte" class="sref">151/2c06"href="+code=lp8788_2c06" 
L3)ass="line" nam  
L327">.3271/a>        if (15f" class=5=buck" class="sref">buck5/a>,.54 href="drivers/regulagoto8_buck_id" class 
L30/regul306"_ href="+code=mode"  
L30/regul306"_ hre 
L3310">.3101/a>                return -1a href5s+code=EI5code=id" class="sref">id5/a>).54 href10">.3101/a>                return -1a href5s325" cla5="line" nam  
L245">.2455/a>{.54 href="drivers/regulator/lp8788--buck.c06"_gpio_requesid 
L328" class=-buck.c06"_gpio_requesiass="">.3171/a>        struct.1a href="+code=lp,elgulator/lp8788enum.1a href="+code=lp8aass="line" nam  
L327">.3271/a>        if (15fref="+co5ode=id" class="sref">id15a>);.54 href="drivers/regulagoto8_buck_id" class 
L30/regul306"_ href="+code=mode"  
L30/regul306"_ hre 
L3310">.3101/a>                return -1a href5shref="+c5dvs" class="sref">b1_dvs5/a>;.54 href="drivers/regulator/lp8788-buck.c#L258" id 5"+code=b25dvs" class="sref">b2_dvs5/a>;.54 href="drivers/regulator/lp8788-buck.c#L312" id 
L312" class="line" nam  
L312">.3121/a>        return 1a 2871href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buckf="+code=lp"DVS_SEL310" class="lin2121/a>    "DVS_SEL>(1a href="+code=buck231/a>        return 1a hre["+code=idx" claenum.1a href="+code=lp8],"drivers/regulator/lp8788-buck.c#L241" id 
5ref="+cod5=addr" class="sref">addr5/a>;.55 href="drivers/regulaaaaaaaaaaaaaaaaa0" class="line"ass="sref">lp1/a>,.1a hre["+code=idx" claenum.1a href="+code=lp8]a310">.3101/a>                return -1a href5rs="line"5=pin2" class="sref">pin25/a>;.55 href="drivers/regulator/lp8788-buck.c#L321" id 5r41" clas5s="line" nam  
L251">.2551/a>.55 href_buck_id" class 
L30/regul306"_ href="+code=mode"  
L30/regul306"_ hre 
L3ator/lp8788-buck.c#L289" id 
L289" class="li5 href="+c5de=id" class="sref">id1/5>) {.55 href="drivers/regulator/lp8788-buck.c#L31 
L30/regul306"_ctrl3 href="+code=mode" class=" 
L30/regul306"_ctrl3 hreass="     return 1a 2871href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a href="+code=buckenum.1a href="+code=lp8a310">.3101/a>                return -1a href5r" class=5UCK1" class="sref">BUCK15/a>:.5a href="drivers/regulator/lp8788-buck.c#L241" id 
5code=EXTP5N" class="sref">EXTPIN1/5>) {.55 href10">.3101/a>                return -1a href5 href="+c5de=dvs" class="sref">dvs5/a>;.55 href="drive" nam  
L287">.__deviniid 
L328" class=__deviniihref=rs/regulator/lp8788-buck.cam  
probef="+code=mode" class="am  
probeass="s/regulator/lp8788-bucp83"form__evict class="sref">lp83"form__evict 
L317">.3171/a>     p_a href="+code=rdep12_get_ass="line" nam  
L327">.3271/a>        if (15"+code=b15dvs" class="sref">b1_dvs5/a>).55 href788-buck.c#L283" id 
L283" class="line" nam 5 href="+c5de=err" class="sref">err5/a>;.55 href="drivers/regulator/lp8788-buck.c#L3f="+code=mode" class= 
L317">.3171/a>     lp8788_read_byte1/a>(1a1ne" nam  
L287">.+codg
L3drv_buck1/a> *1a href=+codg
L3drv_bucass="     return 1a p_a href="+code=rdep12_get__byte" class="sref">1a href="+code=rde12_get_.0" class="line"parent"ref="+code=rdeparent=lp8a310">.3101/a>                return -1a href5r+code=b25s="line" nam  
L258">.2551/a>.5a href="driverrs/regulator/lp8788inum.1a href="+code=lp8788_buck_id" classp_a href="+code=rdep12_get__byte" class="sref">inum.1a href="+code=lp8310">.3101/a>                return -1a href5e=gpio" c5ass="sref">gpio1/a>) ? 15: 0;.56 href="drivers/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp310">.3101/a>                return -1a href5es="line"501/a>                } e5s  {.561href="drivers/regulator/lp8788-buc         _confiL>        1a hre         _confiL 
L320" class="line"cfL>        1a hrecfL=lp8788{ }nam  
L328">.3281/a>                return 15href="+co5e=vn>" class="sref">val15a>);.562href="drivers/regulator/lp8788-buc         __a href="+code=rde         __a  
L317">.3171/a>     r_a href="+code=rde 12_get_="+code=addr" class="sref">addr1/a>,.&1a5hhref="+c5sref">LP8788_BUCK1_DVS_S5/a>;.56 href="driverrs/regulator/lp8788" id 
L328" class="line" nam  
L328">.3281/a>                return 15" nam  
L563">.2631/a>            5   }.564href"drivers/regulator/lp8788-buck.c#L241" id 
5href="+co5e=idx" class="sref">idx15a>];.5a href="driver3181/a>           struct.1a href="+code=lp1ne" nam  
L287">.+com_kzalloc class="sref">l+com_kzallocass="     return 1a lp8788_read_byte1/a>(1a_byte" class="sref">1a href="+code=rde12_get_, sizeof"s/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L3) href="+code=buckGFP_KERNEL310" class="linGFP_KERNEL=lp8a310">.3101/a>                return -1a href5
href="+c52651/a>                b5eak;.56 href="drivers/regulator/lp8788-b   struct.1a href="+code=lpass="line" nam  
L327">.3271/a>        if (15f="+code=5UCK2" class="sref">BUCK25/a>:.56 href="drivers/regulas/regul788-buck.c#L310" NOMEhref="drivers/re NOMEhne" nam  
L328">.3281/a>                return 15"href="+c5N" class="sref">EXTPIN1/5>) {.56 href="drivers/regulator/lp8788-buck.c#L258" id 5 +code=b25de=dvs" class="sref">dvs5/a>;.56 href="driver     return 1a 2871href="+code=lp8788_read_byte" class="sref">lp8788_read_byte1/a>(1a" class="line" nam  8788_read_byte1/a>(1anam  
L328">.3281/a>                return 15"+code=b25dvs" class="sref">b2_dvs5/a>).57 href="driver     return 1a 2871href="+code=lp8788_read_byte" class="sref">pmap8788_read_byte1pmapef="" ca href="+code=lp" clam  
pmap8788_read_byte1am  
pmap hre["+code=idx" claenum.1a href="+code=lp8]nam  
L328">.3281/a>                return 15"s="line"5de=err" class="sref">err5/a>;.57 href="drivers/regulator/lp8788-buck.c#L321" id 5L271" cla5s="line" nam  
L271">.2751/a>.57 href="driver" class="sref">" id 
L328" class="line" 1ne" nam  
L287">.-buck.cinitc06"href="+code=lp8-buck.cinitc06"ass="">.3171/a>        struct.1a href="+code=lp,elgulator/lp8788enum.1a href="+code=lp8anam  
L328">.3281/a>                return 15"href="+c5o" class="sref">gpio1/a>50]);.57 href="drivers/regulator/lp8788-buck.c#L327" id 
L327" class="line" nam  
L327">.3271/a>        if (15" nam  
L5o" class="sref">gpio1/a>51]);.57 href="drivers/regulator/lp8788-buck.c#L328" id 
L328" class="line" nam  
L328">.3281/a>                return 15"ref="+co5s="line" nam  
L274">.2751/a>.57 href10">.3101/a>                return -1a href5Lhref="+c5OW" class="sref">PIN_LOW5/a>).57 href="driver0" class="line"cfL>        1a hrecfL=lp8.0" class="line"1a href="+code=rde12_get_vne" nam  
L287">.lp8788_read_byte1/a>(1a_byte" class="sref">1a href="+code=rde12_get_="+code=addr" class="sref">addr1/a>,.&1a5f="+code=5dx" class="sref">idx1/a>5= 0;.57 href="driver0" class="line"cfL>        1a hrecfL=lp8.0" class="line"initc0buck1/a> *1a href=initc0bucget_vne" nam  
L287">.lp8788_read_byte1/a>(1a_byte" class="sref">p_buck1/a> *1a href=p_buc 
L31?e" nam  
L287">.lp8788_read_byte1/a>(1a_byte" class="sref">p_buck1/a> *1a href=p_buc 
L3_byte" class="sref">151/c0buck1/a> *1a href=151/c0buc hre["+code=idx" claenum.1a href="+code=lp8] :e" nam  
L287">.NULL310" class="linNULLget_="+code=addr" class="sref">addr1/a>,.&1a5fhref="+c5H" class="sref">PIN_HIGH5/a>).5a href="driver0" class="line"cfL>        1a hrecfL=lp8.0" class="line"1" clac0buck1/a> *1a href=1" clac0bucget_vne" nam  
L287">.   struct.1a href="+code=lp310">.3101/a>                return -1a href5f="+code=5dx" class="sref">idx1/a>5= 2;.57 href="driver     return 1a cfL>        1a hrecfL=lp8.0" class="line"   map8788_read_byte1   mapget_vne" nam  
L287">.lp8788_read_byte1/a>(1a_byte" class="sref">   map8788_read_byte1   mapget_310">.3101/a>                return -1a href5code=PIN_5OW" class="sref">PIN_LOW5/a>).58 href10">.3101/a>                return -1a href5cs="line"5dx" class="sref">idx1/a>5= 1;.58 href="driver" class="sref">r_a href="+code=rde 12_get_vne" nam  
L287">.         _s/gistathref="+code=rde         _s/gistatass="a href="+code=lp" cl315">.3151/__asc class="sref">l315">.3151/__asc hre["+code=idx" claenum.1a href="+code=lp8],ca href="+code=lp" clcfL>        1a hrecfL=lp8anam  
L328">.3281/a>                return 151">.2811/5>                       5els .58 href="drivers/ref="+code=lp" clIS_ERR>        1a hreIS_ERRass="">.3171/a>     r_a href="+code=rde 12_get_)ar788-buck.c#L283" id 
L283" class="line" nam 5f="+code=5dx" class="sref">idx1/a>5= 3;.58 href="drivers/regula0" class="line"" id 
L328" class="line" 1ne" nam  
L287">.PTR_ERR>        1a hrePTR_ERRass="">.3171/a>     r_a href="+code=rde 12_get_)nam  
L328">.3281/a>                return 151 nam  
L531/a>                } e5s  {.58 href="drivers/regularef="+code=buck+coderlass="sref">buck+coderla>        return 1a lp8788_read_byte1/a>(1a_byte" class="sref">1a href="+code=rde12_get_, espanclass="srtring">"    %d >        as/gistat erl" ca#37;d\n".3281/a>                return 151ref="+co5e=vn>" class="sref">val15a>);.58 href="drivers/regulas/regulas/regularef="+code=buckinum.1a href="+code=lp87+ 1,elgulator/lp8788" id 
L328" class="line" )nam  
L328">.3281/a>                return 151href="+c5sref">LP8788_BUCK2_DVS_S5/a>;.58 href="drivers/regulas/regul788-buck.c#L328" id 
L328" class="line" nam  
L328">.3281/a>                return 15" nam  
L586">.2861/a>            5   }.58 href="driver="drivers/regulator/lp8788-buck.c#L241" id 
5href="+co5e=idx" class="sref">idx15a>];.58 href="drivers/regulator/lp8788-buck.c#L258" id 5f="+code=52881/a>                b5eak;.58 href="driver     return 1a 2871href="+code=lp8788_read_byte" class="sref">r/lp8788-href="+code=rde         get_vne" nam  
L287">. _a href="+code=rde 12_get_="+code=addr" class="sref">addr1/a>,.&1a5e" nam  
5289">.2891/a>        def5ult:.59 href="driver     return 1a p83"form_s
L3drv_buck1/a> *1a href=p83"form_s
L3drv_bucass="     return 1a p_a href="+code=rdep12_get_,elgulator/lp8788b  struct.1a href="+code=lpa="+code=addr" class="sref">addr1/a>,.&1a5es="line"5de=err" class="sref">err5/a>;.59 href="drivers/regulator/lp8788-buck.c#L321" id 5e">.2811/5nam  
L291">.2911/a>    5   }.592href="drivers/regul0p8788-buck.c#L288" id 
L288" class="line" na5e="+code=5s="line" nam  
L292">.2951/a>.5a href="drivers/regulator/lp8788-buck.c#L241" id 
5eL283">.25=addr" class="sref">addr5/a>;.594href"drivers/regulator/lp8788-buck.c#L241" id 
5e274" cla5de=err" class="sref">err5/a>:.5a href="drivers/regulator/lp8788__devexiid 
L328" class=__devexii 
L320" class="line"315">.3151/_removef="+code=mode" class="am  
removeass="s/regulator/lp8788-bucp83"form__evict class="sref">lp83"form__evict 
L317">.3171/a>     p_a href="+code=rdep12_get_ass="line" nam  
L327">.3271/a>        if (15ehref="+c5lass="sref">INVALID_ADDR5/a>;.59 href788-buck.c#L283" id 
L283" class="line" nam 5e nam  
L5="line" nam  
L296">.2965/a>}.59 href="drivers/regulator/lp8788-buck.c#L317" id 
L317" class="line" nam  
L317">.3171/a>        struct.1a href="+code=lp788_buck_id" classp83"form_g
L3drv_buck1/a> *1a href=p83"form_g
L3drv_bucass="     return 1a p_a href="+code=rdep12_get_a="+code=addr" class="sref">addr1/a>,.&1a5eref="+co5s="line" nam  
L297">.2951/a>.59 href="drivers/regulator/lp8788-buck.c#L258" id 5e="+code=5=rdev" class="sref">rdev5/a>,.59 href="driver     return 1a p83"form_s
L3drv_buck1/a> *1a href=p83"form_s
L3drv_bucass="     return 1a p_a href="+code=rdep12_get_,elgulator/lp8788NULL310" class="linNULLget_a="+code=addr" class="sref">addr1/a>,.&1a6de=select6r" class="sref">selector6/a>).60 href="driver     return 1a          _uns/gistathref="+code=rde         _uns/gistatass="">.3171/a>        struct.1a href="+code=lp_byte" class="sref">r/lp8788-href="+code=rde         get_a="+code=addr" class="sref">addr1/a>,.&1a6d1=select6re=err" class="sref">err6/a>{.60 href="drivers/regulator/lp8788-buck.c#L321" id 6320" clas6=am  
L291">.2911/a>    6a>);.602href="drivers/regul0p8788-buck.c#L288" id 
L288" class="line" na6330" clas6=="line" nam  
L292">.296a>);.60 href="drivers/regulator/lp8788-buck.c#L241" id 
6ref="+cod6=addr" class="sref">addr6/a>;.604href"drivers/regulator/lp8788-buck.c#L241" id 
6L304" cla6s="line" nam  
L304">.3061/a>.60 href="drives/regulator/lp8788-bucp83"form__gulat class="sref">lp83"form__gulat 
L320" class="line"315">.3151/__gulat class="sref">l315">.3151/__gulat=lp8788{"drivers/regulator/lp8788-buck.c#L241" id 
6L604" cla6sass="sref">INVALID_ADDR6/a>).60 href="driver.0" class="line"probef="+code=mode" probeass=" class="line" nam  
L326151/_probef="+code=mode" class="am  
probeass= am  
L328">.3281/a>                return 16a href="+6ode=id" class="sref">id16a>);.60 href="driver.0" class="line"  movef="+code=mode" removeass=1ne" nam  
L287">.__devexii_p8788_read_byte1__devexii_pa>        return 1a lp5">.3151/_removef="+code=mode" class="am  
removeass=a 88-buck.c#L283" id 
L283" class="line" nam 6L307" cla6s="line" nam  
L307">.3061/a>.60 href="driver.0" class="line"1" clak1/a> *1a href=1" cla=lp8788{"drivers/regulator/lp8788-buck.c#L241" id 
6L907" cla6srdev" class="sref">rdev6a>);.60 href="drivers/regula.0" class="line"lect class="sref">llectef="ine" nam  
L212">.2121/a>DEVre=lpref="drivers/regulatorDEVre=lpass= am  
L328">.3281/a>                return 16ef="+code6addr" class="sref">addr16a>)).61 href="drivers/regula.0" class="line"ownelass="sref">buckownelef="" class="line" namTHIS_MODULE" class="line" THIS_MODULE" cl 88-buck.c#L283" id 
L283" class="line" nam 6e00" clas6VAL" class="sref">EINVAL6/a>;.61 href="driver} 88-buck.c#L283" id 
L283" class="line" nam 6L311" cla6s="line" nam  
L311">.3161/a>.61 href}nam  
L328">.3281/a>                return 16L30" clas6" class="sref">selector16a>);.61 href="drivers/regulator/lp8788-buck.c#L183" id 6313" clas6="line" nam  
L313">.3136/a>}.61 href="drivers/regulator/lp8788__iniid 
L328" class=__iniihref=     return 1a lp5">.3151/_iniid 
L328" class=lp5">.3151/_iniia>   voidass="line" nam  
L327">.3271/a>        if (16L304" cla6s="line" nam  
L314">.3161/a>.61 href{"drivers/regulator/lp8788-buck.c#L241" id 
63href="+c6=rdev" class="sref">rdev6/a>).61 href="drivers/regul788-buck.c#L328p83"form__gulat_s/gistathref="+code=rdep83"form__gulat_s/gistatass="a href="+code=lp" cl315">.3151/__gulat class="sref">l315">.3151/__gulat=lp8a="+code=addr" class="sref">addr1/a>,.&1a63 href="+6="line" nam  
L316">.3166/a>{.61 href="drivers/regulator/lp8788-buck.c#L241" id 
63307" cla6rdev" class="sref">rdev16a>);.61 hreff="+code=lp" clsubsys_iniicals="sref">lp1/a>,subsys_iniicalsa>        return 1a lp5">.3151/_iniid 
L328" class=lp5">.3151/_iniia>  a="+code=addr" class="sref">addr1/a>,.&1a63907" cla6rdev" class="sref">rdev16a>);.61 href="drivers/regulator/lp8788-buck.c#L329" id 6 href="+c6de=ret" class="sref">ret6/a>;.62 href="drivevoidregulator/lp8788__exiid 
L328" class=__exii 
L320" class="line"315">.3151/_exiid 
L328" class=315">.3151/_exiia>   voidass="line" nam  
L327">.3271/a>        if (16 00" clas6=addr" class="sref">addr6/a>;.62 href{"drivers/regulator/lp8788-buck.c#L241" id 
6 311" cla6s="line" nam  
L321">.3261/a>.62 href="driver" class="sref">p83"form__gulat_uns/gistathref="+code=rdep83"form__gulat_uns/gistatass="a href="+code=lp" cl315">.3151/__gulat class="sref">l315">.3151/__gulat=lp8a="+code=addr" class="sref">addr1/a>,.&1a6 30" clas6ode=id" class="sref">id16a>);.62 href="drivers/regulator/lp8788-buck.c#L241" id 
6ef="+code6addr" class="sref">addr16a>)).624hreff="+code=lp" clmodule_exiid 
L328" class=module_exiia>        return 1a lp5">.3151/_exiid 
L328" class=315">.3151/_exiia>  a="+code=addr" class="sref">addr1/a>,.&1a6 304" cla6VAL" class="sref">EINVAL6/a>;.62 href10">.3101/a>                return -1a href6"href="+c6s="line" nam  
L325">.3261/a>.62 href     return 1a MODULErDESCRIPTIONref="drivers/reMODULErDESCRIPTIONa>    spanclass="srtring">"TI gulato e=lp D>    "addr1/a>,.&1a6  href="+6e=vn>" class="sref">val16a>);.62 href     return 1a MODULErAUTHOR>        1a hreMODULErAUTHORa>    spanclass="srtring">"Milo Kim"addr1/a>,.&1a6 307" cla6de=ret" class="sref">ret6/a>).62 hreff="+code=lp" clMODULErLICENSE" class="line" MODULErLICENSEa>    spanclass="srtring">"GPL"addr1/a>,.&1a6 907" cla6de=ret" class="sref">ret6/a>;.62 href     return 1a MODULErALIAS310" class="linMODULErALIASa>    spanclass="srtring">"p83"form:dr1/a>,.&am"addr1/a>,.&1a6L329" cla6s="line" nam  
L329">.3261/a>.63 href


The original LXR software by thegulator/lphttp://sourceforge.net/projects/lxth>LXR communiiyget_,ethis experimental clasion by ulator/lpmailto:lxt@m ux.nos=3xt@m ux.no=lp8.
3xt.m ux.no kindly hosted by ulator/lphttp://www.redpill-m pro.nos=Redpill L pro ASa> , provider of L ux consulting and operdrions servicts since 1995.