Home
last modified time | relevance | path

Searched refs:iodev (Results 1 – 17 of 17) sorted by relevance

/drivers/staging/iio/adc/
Dlpc32xx_adc.c134 struct iio_dev *iodev = NULL; in lpc32xx_adc_probe() local
143 iodev = devm_iio_device_alloc(&pdev->dev, sizeof(*info)); in lpc32xx_adc_probe()
144 if (!iodev) in lpc32xx_adc_probe()
147 info = iio_priv(iodev); in lpc32xx_adc_probe()
175 platform_set_drvdata(pdev, iodev); in lpc32xx_adc_probe()
179 iodev->name = MOD_NAME; in lpc32xx_adc_probe()
180 iodev->dev.parent = &pdev->dev; in lpc32xx_adc_probe()
181 iodev->info = &lpc32xx_adc_iio_info; in lpc32xx_adc_probe()
182 iodev->modes = INDIO_DIRECT_MODE; in lpc32xx_adc_probe()
183 iodev->channels = lpc32xx_adc_iio_channels; in lpc32xx_adc_probe()
[all …]
/drivers/regulator/
Ds5m8767.c29 struct sec_pmic_dev *iodev; member
489 return regmap_update_bits(s5m8767->iodev->regmap_pmic, in s5m8767_enable_ext_control()
496 static int s5m8767_pmic_dt_parse_dvs_gpio(struct sec_pmic_dev *iodev, in s5m8767_pmic_dt_parse_dvs_gpio() argument
506 dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio); in s5m8767_pmic_dt_parse_dvs_gpio()
514 static int s5m8767_pmic_dt_parse_ds_gpio(struct sec_pmic_dev *iodev, in s5m8767_pmic_dt_parse_ds_gpio() argument
524 dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio); in s5m8767_pmic_dt_parse_ds_gpio()
535 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s5m8767_pmic_dt_parse_pdata() local
541 pmic_np = iodev->dev->of_node; in s5m8767_pmic_dt_parse_pdata()
543 dev_err(iodev->dev, "could not find pmic sub-node\n"); in s5m8767_pmic_dt_parse_pdata()
549 dev_err(iodev->dev, "could not find regulators sub-node\n"); in s5m8767_pmic_dt_parse_pdata()
[all …]
Dmax8998.c41 struct max8998_dev *iodev; member
156 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_is_enabled()
174 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_enable()
187 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_disable()
263 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_get_voltage_sel()
285 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_ldo_sel()
313 dev_get_platdata(max8998->iodev->dev); in max8998_set_voltage_buck_sel()
314 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_buck_sel()
417 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_set_voltage_buck_time_sel()
435 if (max8998->iodev->type == TYPE_MAX8998 && !(val & MAX8998_ENRAMP)) in max8998_set_voltage_buck_time_sel()
[all …]
Dmax8997.c39 struct max8997_dev *iodev; member
260 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_is_enabled()
278 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_enable()
291 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_disable()
370 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_get_voltage_sel()
415 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_set_voltage_charger_cv()
470 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_set_voltage_ldobuck()
712 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_set_voltage_safeout_sel()
729 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_disable_suspend()
915 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_pmic_dt_parse_pdata() local
[all …]
Ds2mpa01.c342 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mpa01_pmic_probe() local
343 struct sec_platform_data *pdata = dev_get_platdata(iodev->dev); in s2mpa01_pmic_probe()
357 if (iodev->dev->of_node) { in s2mpa01_pmic_probe()
358 reg_np = of_get_child_by_name(iodev->dev->of_node, in s2mpa01_pmic_probe()
374 config.regmap = iodev->regmap_pmic; in s2mpa01_pmic_probe()
Dmax77693.c245 struct max77693_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77693_pmic_probe() local
251 config.dev = iodev->dev; in max77693_pmic_probe()
272 config.regmap = max77693_get_regmap(type, iodev, in max77693_pmic_probe()
Dmax77802.c538 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77802_pmic_probe() local
549 config.dev = iodev->dev; in max77802_pmic_probe()
550 config.regmap = iodev->regmap; in max77802_pmic_probe()
560 ret = regmap_read(iodev->regmap, regulators[i].enable_reg, &val); in max77802_pmic_probe()
Dmax77686.c507 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77686_pmic_probe() local
519 config.dev = iodev->dev; in max77686_pmic_probe()
520 config.regmap = iodev->regmap; in max77686_pmic_probe()
Ds2mps11.c963 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_pmic_probe() local
1016 if (!iodev->dev->of_node) { in s2mps11_pmic_probe()
1017 if (iodev->pdata) { in s2mps11_pmic_probe()
1018 pdata = iodev->pdata; in s2mps11_pmic_probe()
1042 config.regmap = iodev->regmap_pmic; in s2mps11_pmic_probe()
/drivers/power/
Dmax8997_charger.c32 struct max8997_dev *iodev; member
48 struct i2c_client *i2c = charger->iodev->i2c; in max8997_battery_get_property()
100 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_battery_probe() local
101 struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); in max8997_battery_probe()
114 ret = max8997_update_reg(iodev->i2c, in max8997_battery_probe()
124 ret = max8997_update_reg(iodev->i2c, MAX8997_REG_MBCCTRL1, in max8997_battery_probe()
128 ret = max8997_update_reg(iodev->i2c, MAX8997_REG_MBCCTRL1, in max8997_battery_probe()
132 ret = max8997_update_reg(iodev->i2c, MAX8997_REG_MBCCTRL1, in max8997_battery_probe()
136 ret = max8997_update_reg(iodev->i2c, MAX8997_REG_MBCCTRL1, in max8997_battery_probe()
160 charger->iodev = iodev; in max8997_battery_probe()
Dmax8998_charger.c32 struct max8998_dev *iodev; member
47 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_battery_get_property()
87 struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8998_battery_probe() local
88 struct max8998_platform_data *pdata = iodev->pdata; in max8998_battery_probe()
105 max8998->iodev = iodev; in max8998_battery_probe()
107 i2c = max8998->iodev->i2c; in max8998_battery_probe()
/drivers/leds/
Dleds-max8997.c44 struct max8997_dev *iodev; member
56 struct i2c_client *client = led->iodev->i2c; in max8997_led_set_mode()
95 dev_err(led->iodev->dev, in max8997_led_set_mode()
105 struct i2c_client *client = led->iodev->i2c; in max8997_led_enable()
115 dev_err(led->iodev->dev, in max8997_led_enable()
125 struct i2c_client *client = led->iodev->i2c; in max8997_led_set_current()
148 dev_err(led->iodev->dev, in max8997_led_set_current()
240 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_led_probe() local
241 struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); in max8997_led_probe()
263 led->iodev = iodev; in max8997_led_probe()
Dleds-max77693.c884 struct max77693_dev *iodev = dev_get_drvdata(dev->parent); in max77693_init_v4l2_flash_config() local
885 struct i2c_client *i2c = iodev->i2c; in max77693_init_v4l2_flash_config()
986 struct max77693_dev *iodev = dev_get_drvdata(dev->parent); in max77693_led_probe() local
998 led->regmap = iodev->regmap; in max77693_led_probe()
/drivers/clk/
Dclk-s2mps11.c44 struct sec_pmic_dev *iodev; member
62 return regmap_update_bits(s2mps11->iodev->regmap_pmic, in s2mps11_clk_prepare()
71 regmap_update_bits(s2mps11->iodev->regmap_pmic, s2mps11->reg, in s2mps11_clk_unprepare()
81 ret = regmap_read(s2mps11->iodev->regmap_pmic, in s2mps11_clk_is_prepared()
154 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_clk_parse_dt() local
158 if (!iodev->dev->of_node) in s2mps11_clk_parse_dt()
161 clk_np = of_get_child_by_name(iodev->dev->of_node, "clocks"); in s2mps11_clk_parse_dt()
179 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s2mps11_clk_probe() local
227 s2mps11_clk->iodev = iodev; in s2mps11_clk_probe()
Dclk-max77802.c53 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77802_clk_probe() local
56 ret = max_gen_clk_probe(pdev, iodev->regmap, MAX77802_REG_32KHZ, in max77802_clk_probe()
65 ret = regmap_update_bits(iodev->regmap, MAX77802_REG_32KHZ, in max77802_clk_probe()
Dclk-max77686.c57 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max77686_clk_probe() local
59 return max_gen_clk_probe(pdev, iodev->regmap, MAX77686_REG_32KHZ, in max77686_clk_probe()
/drivers/input/misc/
Dmax8997_haptic.c255 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); in max8997_haptic_probe() local
257 dev_get_platdata(iodev->dev); in max8997_haptic_probe()
282 chip->client = iodev->haptic; in max8997_haptic_probe()