Lines Matching refs:master
18 struct device *master;
29 struct device *master = data->master;
35 ret |= adp5520_clr_bits(master, ADP5520_BL_CONTROL,
37 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX,
44 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX,
46 ret |= adp5520_set_bits(master, ADP5520_BL_CONTROL,
50 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, brightness);
54 ret |= adp5520_set_bits(master,
57 ret |= adp5520_clr_bits(master,
84 error = adp5520_read(data->master, ADP5520_BL_VALUE, ®_val);
97 struct device *master = data->master;
101 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX,
103 ret |= adp5520_write(master, ADP5520_DAYLIGHT_DIM,
108 ret |= adp5520_write(master, ADP5520_OFFICE_MAX,
110 ret |= adp5520_write(master, ADP5520_OFFICE_DIM,
112 ret |= adp5520_write(master, ADP5520_DARK_MAX,
114 ret |= adp5520_write(master, ADP5520_DARK_DIM,
116 ret |= adp5520_write(master, ADP5520_L2_TRIP,
118 ret |= adp5520_write(master, ADP5520_L2_HYS,
120 ret |= adp5520_write(master, ADP5520_L3_TRIP,
122 ret |= adp5520_write(master, ADP5520_L3_HYS,
124 ret |= adp5520_write(master, ADP5520_ALS_CMPR_CFG,
129 ret |= adp5520_write(master, ADP5520_BL_CONTROL,
133 ret |= adp5520_write(master, ADP5520_BL_FADE, FADE_VAL(pdata->fade_in,
136 ret |= adp5520_set_bits(master, ADP5520_MODE_STATUS,
149 error = adp5520_read(data->master, reg, ®_val);
167 adp5520_write(data->master, reg, val);
291 data->master = pdev->dev.parent;
307 bl = backlight_device_register(pdev->name, data->master, data,
338 adp5520_clr_bits(data->master, ADP5520_MODE_STATUS, ADP5520_BL_EN);