Searched refs:ddata (Results 1 – 4 of 4) sorted by relevance
/linux-3.4.99/drivers/misc/ |
D | bh1780gli.c | 48 static int bh1780_write(struct bh1780_data *ddata, u8 reg, u8 val, char *msg) in bh1780_write() argument 50 int ret = i2c_smbus_write_byte_data(ddata->client, reg, val); in bh1780_write() 52 dev_err(&ddata->client->dev, in bh1780_write() 58 static int bh1780_read(struct bh1780_data *ddata, u8 reg, char *msg) in bh1780_read() argument 60 int ret = i2c_smbus_read_byte_data(ddata->client, reg); in bh1780_read() 62 dev_err(&ddata->client->dev, in bh1780_read() 72 struct bh1780_data *ddata = platform_get_drvdata(pdev); in bh1780_show_lux() local 75 lsb = bh1780_read(ddata, BH1780_REG_DLOW, "DLOW"); in bh1780_show_lux() 79 msb = bh1780_read(ddata, BH1780_REG_DHIGH, "DHIGH"); in bh1780_show_lux() 91 struct bh1780_data *ddata = platform_get_drvdata(pdev); in bh1780_show_power_state() local [all …]
|
/linux-3.4.99/drivers/video/omap2/displays/ |
D | panel-dvi.c | 95 struct panel_drv_data *ddata; in panel_dvi_probe() local 97 ddata = kzalloc(sizeof(*ddata), GFP_KERNEL); in panel_dvi_probe() 98 if (!ddata) in panel_dvi_probe() 104 ddata->dssdev = dssdev; in panel_dvi_probe() 105 mutex_init(&ddata->lock); in panel_dvi_probe() 107 dev_set_drvdata(&dssdev->dev, ddata); in panel_dvi_probe() 114 struct panel_drv_data *ddata = dev_get_drvdata(&dssdev->dev); in panel_dvi_remove() local 116 mutex_lock(&ddata->lock); in panel_dvi_remove() 120 mutex_unlock(&ddata->lock); in panel_dvi_remove() 122 kfree(ddata); in panel_dvi_remove() [all …]
|
D | panel-n8x0.c | 118 struct panel_drv_data *ddata = get_drv_data(dssdev); in blizzard_ctrl_setup_update() local 146 if (ddata->blizzard_ver == BLIZZARD_VERSION_S1D13745) in blizzard_ctrl_setup_update() 149 tmp[17] = ddata->blizzard_ver == BLIZZARD_VERSION_S1D13744 ? in blizzard_ctrl_setup_update() 283 struct panel_drv_data *ddata = get_drv_data(dssdev); in n8x0_panel_power_on() local 284 struct spi_device *spi = ddata->spidev; in n8x0_panel_power_on() 309 ddata->blizzard_ver = BLIZZARD_VERSION_S1D13744; in n8x0_panel_power_on() 314 ddata->blizzard_ver = BLIZZARD_VERSION_S1D13745; in n8x0_panel_power_on() 376 struct panel_drv_data *ddata = get_drv_data(dssdev); in n8x0_panel_power_off() local 377 struct spi_device *spi = ddata->spidev; in n8x0_panel_power_off() 419 struct panel_drv_data *ddata = get_drv_data(dssdev); in n8x0_bl_update_status() local [all …]
|
/linux-3.4.99/drivers/input/keyboard/ |
D | gpio_keys.c | 161 static ssize_t gpio_keys_attr_show_helper(struct gpio_keys_drvdata *ddata, in gpio_keys_attr_show_helper() argument 174 for (i = 0; i < ddata->n_buttons; i++) { in gpio_keys_attr_show_helper() 175 struct gpio_button_data *bdata = &ddata->data[i]; in gpio_keys_attr_show_helper() 205 static ssize_t gpio_keys_attr_store_helper(struct gpio_keys_drvdata *ddata, in gpio_keys_attr_store_helper() argument 222 for (i = 0; i < ddata->n_buttons; i++) { in gpio_keys_attr_store_helper() 223 struct gpio_button_data *bdata = &ddata->data[i]; in gpio_keys_attr_store_helper() 235 mutex_lock(&ddata->disable_lock); in gpio_keys_attr_store_helper() 237 for (i = 0; i < ddata->n_buttons; i++) { in gpio_keys_attr_store_helper() 238 struct gpio_button_data *bdata = &ddata->data[i]; in gpio_keys_attr_store_helper() 249 mutex_unlock(&ddata->disable_lock); in gpio_keys_attr_store_helper() [all …]
|