Searched refs:ddata (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/misc/ |
D | bh1780gli.c | 47 static int bh1780_write(struct bh1780_data *ddata, u8 reg, u8 val, char *msg) in bh1780_write() argument 49 int ret = i2c_smbus_write_byte_data(ddata->client, reg, val); in bh1780_write() 51 dev_err(&ddata->client->dev, in bh1780_write() 57 static int bh1780_read(struct bh1780_data *ddata, u8 reg, char *msg) in bh1780_read() argument 59 int ret = i2c_smbus_read_byte_data(ddata->client, reg); in bh1780_read() 61 dev_err(&ddata->client->dev, in bh1780_read() 71 struct bh1780_data *ddata = platform_get_drvdata(pdev); in bh1780_show_lux() local 74 lsb = bh1780_read(ddata, BH1780_REG_DLOW, "DLOW"); in bh1780_show_lux() 78 msb = bh1780_read(ddata, BH1780_REG_DHIGH, "DHIGH"); in bh1780_show_lux() 90 struct bh1780_data *ddata = platform_get_drvdata(pdev); in bh1780_show_power_state() local [all …]
|
/linux-2.6.39/drivers/input/keyboard/ |
D | gpio_keys.c | 154 static ssize_t gpio_keys_attr_show_helper(struct gpio_keys_drvdata *ddata, in gpio_keys_attr_show_helper() argument 167 for (i = 0; i < ddata->n_buttons; i++) { in gpio_keys_attr_show_helper() 168 struct gpio_button_data *bdata = &ddata->data[i]; in gpio_keys_attr_show_helper() 198 static ssize_t gpio_keys_attr_store_helper(struct gpio_keys_drvdata *ddata, in gpio_keys_attr_store_helper() argument 215 for (i = 0; i < ddata->n_buttons; i++) { in gpio_keys_attr_store_helper() 216 struct gpio_button_data *bdata = &ddata->data[i]; in gpio_keys_attr_store_helper() 228 mutex_lock(&ddata->disable_lock); in gpio_keys_attr_store_helper() 230 for (i = 0; i < ddata->n_buttons; i++) { in gpio_keys_attr_store_helper() 231 struct gpio_button_data *bdata = &ddata->data[i]; in gpio_keys_attr_store_helper() 242 mutex_unlock(&ddata->disable_lock); in gpio_keys_attr_store_helper() [all …]
|