/linux-master/drivers/mfd/ |
H A D | max8997-irq.c | 3 // max8997-irq.c - Interrupt controller support for MAX8997 13 #include <linux/mfd/max8997.h> 14 #include <linux/mfd/max8997-private.h> 30 static struct i2c_client *get_i2c(struct max8997_dev *max8997, argument 35 return max8997->i2c; 39 return max8997->muic; 41 return max8997->i2c; 43 return max8997->i2c; 102 struct max8997_dev *max8997 = irq_data_get_irq_chip_data(data); local 104 mutex_lock(&max8997 109 struct max8997_dev *max8997 = irq_data_get_irq_chip_data(data); local 129 irq_to_max8997_irq(struct max8997_dev *max8997, struct irq_data *data) argument 136 struct max8997_dev *max8997 = irq_data_get_irq_chip_data(data); local 145 struct max8997_dev *max8997 = irq_data_get_irq_chip_data(data); local 167 struct max8997_dev *max8997 = data; local 268 max8997_irq_resume(struct max8997_dev *max8997) argument 278 struct max8997_dev *max8997 = d->host_data; local 292 max8997_irq_init(struct max8997_dev *max8997) argument 362 max8997_irq_exit(struct max8997_dev *max8997) argument [all...] |
H A D | max8997.c | 3 // max8997.c - mfd core driver for the Maxim 8966 and 8997 20 #include <linux/mfd/max8997.h> 21 #include <linux/mfd/max8997-private.h> 30 { .name = "max8997-pmic", }, 31 { .name = "max8997-rtc", }, 32 { .name = "max8997-battery", }, 33 { .name = "max8997-haptic", }, 34 { .name = "max8997-muic", }, 35 { .name = "max8997-led", .id = 1 }, 36 { .name = "max8997 48 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 65 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 80 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 92 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 107 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 147 struct max8997_dev *max8997; local 393 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 415 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 437 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local 448 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); local [all...] |
H A D | Makefile | 170 obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o
|
/linux-master/drivers/regulator/ |
H A D | max8997-regulator.c | 3 // max8997.c - Regulator driver for the Maxim 8997/8966 18 #include <linux/mfd/max8997.h> 19 #include <linux/mfd/max8997-private.h> 48 static inline void max8997_set_gpio(struct max8997_data *max8997) argument 50 int set3 = (max8997->buck125_gpioindex) & 0x1; 51 int set2 = ((max8997->buck125_gpioindex) >> 1) & 0x1; 52 int set1 = ((max8997->buck125_gpioindex) >> 2) & 0x1; 54 gpiod_set_value(max8997->buck125_gpiods[0], set1); 55 gpiod_set_value(max8997->buck125_gpiods[1], set2); 56 gpiod_set_value(max8997 243 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 261 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 274 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 288 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 353 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 398 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 450 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 493 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 540 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 617 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 692 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 709 struct max8997_data *max8997 = rdev_get_drvdata(rdev); local 988 struct max8997_data *max8997; local [all...] |
H A D | Makefile | 84 obj-$(CONFIG_REGULATOR_MAX8997) += max8997-regulator.o
|
/linux-master/drivers/rtc/ |
H A D | rtc-max8997.c | 17 #include <linux/mfd/max8997-private.h> 66 struct max8997_dev *max8997; member in struct:max8997_rtc_info 206 ret = max8997_read_reg(info->max8997->i2c, MAX8997_REG_STATUS1, &val); 450 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); local 461 info->max8997 = max8997; 462 info->rtc = max8997->rtc; 478 info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8997-rtc", 487 virq = irq_create_mapping(max8997->irq_domain, MAX8997_PMICIRQ_RTCA1); 515 { "max8997 [all...] |
H A D | Makefile | 99 obj-$(CONFIG_RTC_DRV_MAX8997) += rtc-max8997.o
|
/linux-master/drivers/extcon/ |
H A D | Makefile | 19 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
|
H A D | extcon-max8997.c | 3 // extcon-max8997.c - MAX8997 extcon driver to support MAX8997 MUIC 17 #include <linux/mfd/max8997.h> 18 #include <linux/mfd/max8997-private.h> 22 #define DEV_NAME "max8997-muic" 157 * @info: the instance including private data of max8997 MUIC 189 * @info: the instance including private data of max8997 MUIC 193 * The max8997 MUIC device share outside H/W line among a varity of cables, 237 * @info: the instance including private data of max8997 MUIC 634 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); local 635 struct max8997_platform_data *pdata = dev_get_platdata(max8997 [all...] |
/linux-master/drivers/leds/ |
H A D | leds-max8997.c | 3 * leds-max8997.c - LED class driver for MAX8997 LEDs. 13 #include <linux/mfd/max8997.h> 14 #include <linux/mfd/max8997-private.h> 231 ATTRIBUTE_GROUPS(max8997); variable 246 snprintf(name, sizeof(name), "max8997-led%d", pdev->id); 284 .name = "max8997-led", 294 MODULE_ALIAS("platform:max8997-led");
|
H A D | Makefile | 61 obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
|
/linux-master/include/linux/mfd/ |
H A D | max8997-private.h | 3 * max8997-private.h - Voltage regulator driver for the Maxim 8997 399 extern int max8997_irq_init(struct max8997_dev *max8997); 400 extern void max8997_irq_exit(struct max8997_dev *max8997); 401 extern int max8997_irq_resume(struct max8997_dev *max8997);
|
/linux-master/drivers/power/supply/ |
H A D | max8997_charger.c | 14 #include <linux/mfd/max8997.h> 15 #include <linux/mfd/max8997-private.h> 244 charger->edev = extcon_get_extcon_dev("max8997-muic"); 247 "couldn't get extcon device: max8997-muic\n"); 271 { "max8997-battery", 0 }, 278 .name = "max8997-battery",
|
/linux-master/drivers/input/misc/ |
H A D | max8997_haptic.c | 17 #include <linux/mfd/max8997-private.h> 18 #include <linux/mfd/max8997.h> 313 input_dev->name = "max8997-haptic"; 381 { "max8997-haptic", 0 }, 388 .name = "max8997-haptic",
|