/openbmc/linux/drivers/mfd/ |
H A D | lm3533-core.c | 83 int lm3533_read(struct lm3533 *lm3533, u8 reg, u8 *val) in lm3533_read() argument 103 int lm3533_write(struct lm3533 *lm3533, u8 reg, u8 val) in lm3533_write() argument 135 static int lm3533_set_boost_freq(struct lm3533 *lm3533, in lm3533_set_boost_freq() argument 150 static int lm3533_set_boost_ovp(struct lm3533 *lm3533, in lm3533_set_boost_ovp() argument 226 static void lm3533_enable(struct lm3533 *lm3533) in lm3533_enable() argument 232 static void lm3533_disable(struct lm3533 *lm3533) in lm3533_disable() argument 259 struct lm3533 *lm3533 = dev_get_drvdata(dev); in show_output() local 296 struct lm3533 *lm3533 = dev_get_drvdata(dev); in store_output() local 362 struct lm3533 *lm3533 = dev_get_drvdata(dev); in lm3533_attr_is_visible() local 587 struct lm3533 *lm3533; in lm3533_i2c_probe() local [all …]
|
H A D | lm3533-ctrlbank.c | 41 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, in lm3533_ctrlbank_enable() 58 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, 0, mask); in lm3533_ctrlbank_disable() 83 ret = lm3533_write(cb->lm3533, reg, val); in lm3533_ctrlbank_set_max_current() 97 ret = lm3533_write(cb->lm3533, reg, val); in lm3533_ctrlbank_set_brightness() 111 ret = lm3533_read(cb->lm3533, reg, val); in lm3533_ctrlbank_get_brightness() 138 ret = lm3533_write(cb->lm3533, reg, val); in lm3533_ctrlbank_set_pwm() 152 ret = lm3533_read(cb->lm3533, reg, val); in lm3533_ctrlbank_get_pwm()
|
H A D | Makefile | 230 obj-$(CONFIG_MFD_LM3533) += lm3533-core.o lm3533-ctrlbank.o
|
/openbmc/linux/include/linux/mfd/ |
H A D | lm3533.h | 21 struct lm3533 { struct 35 struct lm3533 *lm3533; argument 96 extern int lm3533_read(struct lm3533 *lm3533, u8 reg, u8 *val); 97 extern int lm3533_write(struct lm3533 *lm3533, u8 reg, u8 val); 98 extern int lm3533_update(struct lm3533 *lm3533, u8 reg, u8 val, u8 mask);
|
/openbmc/linux/drivers/video/backlight/ |
H A D | lm3533_bl.c | 27 struct lm3533 *lm3533; member 91 ret = lm3533_read(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, &val); in show_als_en() 122 ret = lm3533_update(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, val, in store_als_en() 139 ret = lm3533_read(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, &val); in show_linear() 173 ret = lm3533_update(bl->lm3533, LM3533_REG_CTRLBANK_AB_BCONF, val, in store_linear() 238 if (!bl->lm3533->have_als) in lm3533_bl_attr_is_visible() 264 struct lm3533 *lm3533; in lm3533_bl_probe() local 273 lm3533 = dev_get_drvdata(pdev->dev.parent); in lm3533_bl_probe() 274 if (!lm3533) in lm3533_bl_probe() 292 bl->lm3533 = lm3533; in lm3533_bl_probe() [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-lm3533.c | 44 struct lm3533 *lm3533; member 262 ret = lm3533_write(led->lm3533, reg, val); in lm3533_led_delay_set() 343 ret = lm3533_read(led->lm3533, reg, &val); in show_risefalltime() 378 ret = lm3533_write(led->lm3533, reg, val); in store_risefalltime() 412 ret = lm3533_read(led->lm3533, reg, &val); in show_als_channel() 618 if (!led->lm3533->have_als) in lm3533_led_attr_is_visible() 649 struct lm3533 *lm3533; in lm3533_led_probe() local 657 if (!lm3533) in lm3533_led_probe() 675 led->lm3533 = lm3533; in lm3533_led_probe() 691 led->cb.lm3533 = lm3533; in lm3533_led_probe() [all …]
|
H A D | Makefile | 41 obj-$(CONFIG_LEDS_LM3533) += leds-lm3533.o
|
/openbmc/linux/drivers/iio/light/ |
H A D | lm3533-als.c | 51 struct lm3533 *lm3533; member 75 ret = lm3533_read(als->lm3533, reg, &val); in lm3533_als_get_adc() 143 ret = lm3533_read(als->lm3533, reg, val); in lm3533_als_get_target() 164 ret = lm3533_write(als->lm3533, reg, val); in lm3533_als_set_target() 329 ret = lm3533_read(als->lm3533, reg, val); in lm3533_als_get_threshold() 351 ret = lm3533_read(als->lm3533, reg2, &val2); in lm3533_als_set_threshold() 366 ret = lm3533_write(als->lm3533, reg, val); in lm3533_als_set_threshold() 831 struct lm3533 *lm3533; in lm3533_als_probe() local 838 if (!lm3533) in lm3533_als_probe() 859 als->lm3533 = lm3533; in lm3533_als_probe() [all …]
|
H A D | Makefile | 32 obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o
|