Lines Matching refs:lm3533
51 struct lm3533 *lm3533; member
75 ret = lm3533_read(als->lm3533, reg, &val); in lm3533_als_get_adc()
92 ret = lm3533_read(als->lm3533, LM3533_REG_ALS_ZONE_INFO, &val); in _lm3533_als_get_zone()
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()
283 ret = lm3533_update(als->lm3533, LM3533_REG_ALS_ZONE_INFO, val, mask); in lm3533_als_set_int_mode()
300 ret = lm3533_read(als->lm3533, LM3533_REG_ALS_ZONE_INFO, &val); in lm3533_als_get_int_mode()
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()
728 ret = lm3533_update(als->lm3533, LM3533_REG_ALS_CONF, val, mask); in lm3533_als_set_input_mode()
747 ret = lm3533_write(als->lm3533, LM3533_REG_ALS_RESISTOR_SELECT, val); in lm3533_als_set_resistor()
781 ret = lm3533_update(als->lm3533, LM3533_REG_ALS_ZONE_INFO, 0, mask); in lm3533_als_setup_irq()
804 ret = lm3533_update(als->lm3533, LM3533_REG_ALS_CONF, mask, mask); in lm3533_als_enable()
816 ret = lm3533_update(als->lm3533, LM3533_REG_ALS_CONF, 0, mask); in lm3533_als_disable()
831 struct lm3533 *lm3533; in lm3533_als_probe() local
837 lm3533 = dev_get_drvdata(pdev->dev.parent); in lm3533_als_probe()
838 if (!lm3533) in lm3533_als_probe()
859 als->lm3533 = lm3533; in lm3533_als_probe()
861 als->irq = lm3533->irq; in lm3533_als_probe()