Searched refs:max8997 (Results 1 – 13 of 13) sorted by relevance
44 static struct i2c_client *get_i2c(struct max8997_dev *max8997, in get_i2c() argument49 return max8997->i2c; in get_i2c()53 return max8997->muic; in get_i2c()55 return max8997->i2c; in get_i2c()57 return max8997->i2c; in get_i2c()116 struct max8997_dev *max8997 = irq_get_chip_data(data->irq); in max8997_irq_lock() local118 mutex_lock(&max8997->irqlock); in max8997_irq_lock()123 struct max8997_dev *max8997 = irq_get_chip_data(data->irq); in max8997_irq_sync_unlock() local128 struct i2c_client *i2c = get_i2c(max8997, i); in max8997_irq_sync_unlock()133 max8997->irq_masks_cache[i] = max8997->irq_masks_cur[i]; in max8997_irq_sync_unlock()[all …]
62 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_read_reg() local65 mutex_lock(&max8997->iolock); in max8997_read_reg()67 mutex_unlock(&max8997->iolock); in max8997_read_reg()79 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_bulk_read() local82 mutex_lock(&max8997->iolock); in max8997_bulk_read()84 mutex_unlock(&max8997->iolock); in max8997_bulk_read()94 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_write_reg() local97 mutex_lock(&max8997->iolock); in max8997_write_reg()99 mutex_unlock(&max8997->iolock); in max8997_write_reg()106 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_bulk_write() local[all …]
123 obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o
63 static inline void max8997_set_gpio(struct max8997_data *max8997) in max8997_set_gpio() argument65 int set3 = (max8997->buck125_gpioindex) & 0x1; in max8997_set_gpio()66 int set2 = ((max8997->buck125_gpioindex) >> 1) & 0x1; in max8997_set_gpio()67 int set1 = ((max8997->buck125_gpioindex) >> 2) & 0x1; in max8997_set_gpio()69 gpio_set_value(max8997->buck125_gpios[0], set1); in max8997_set_gpio()70 gpio_set_value(max8997->buck125_gpios[1], set2); in max8997_set_gpio()71 gpio_set_value(max8997->buck125_gpios[2], set3); in max8997_set_gpio()259 struct max8997_data *max8997 = rdev_get_drvdata(rdev); in max8997_reg_is_enabled() local260 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_is_enabled()277 struct max8997_data *max8997 = rdev_get_drvdata(rdev); in max8997_reg_enable() local[all …]
53 obj-$(CONFIG_REGULATOR_MAX8997) += max8997.o
70 struct max8997_dev *max8997; member210 ret = max8997_read_reg(info->max8997->i2c, MAX8997_REG_STATUS1, &val); in max8997_rtc_read_alarm()454 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); in max8997_rtc_probe() local465 info->max8997 = max8997; in max8997_rtc_probe()466 info->rtc = max8997->rtc; in max8997_rtc_probe()491 virq = irq_create_mapping(max8997->irq_domain, MAX8997_PMICIRQ_RTCA1); in max8997_rtc_probe()
86 obj-$(CONFIG_RTC_DRV_MAX8997) += rtc-max8997.o
279 will be called rtc-max8997.
656 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); in max8997_muic_probe() local657 struct max8997_platform_data *pdata = dev_get_platdata(max8997->dev); in max8997_muic_probe()668 info->muic = max8997->muic; in max8997_muic_probe()679 virq = irq_create_mapping(max8997->irq_domain, muic_irq->irq); in max8997_muic_probe()
11 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
53 obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
236 ATTRIBUTE_GROUPS(max8997);
178 module will be called max8997-haptic.