Searched refs:max8997 (Results 1 – 8 of 8) 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 …]
52 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_read_reg() local55 mutex_lock(&max8997->iolock); in max8997_read_reg()57 mutex_unlock(&max8997->iolock); in max8997_read_reg()69 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_bulk_read() local72 mutex_lock(&max8997->iolock); in max8997_bulk_read()74 mutex_unlock(&max8997->iolock); in max8997_bulk_read()84 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_write_reg() local87 mutex_lock(&max8997->iolock); in max8997_write_reg()89 mutex_unlock(&max8997->iolock); in max8997_write_reg()96 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_bulk_write() local[all …]
80 obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o
56 static inline void max8997_set_gpio(struct max8997_data *max8997) in max8997_set_gpio() argument58 int set3 = (max8997->buck125_gpioindex) & 0x1; in max8997_set_gpio()59 int set2 = ((max8997->buck125_gpioindex) >> 1) & 0x1; in max8997_set_gpio()60 int set1 = ((max8997->buck125_gpioindex) >> 2) & 0x1; in max8997_set_gpio()62 gpio_set_value(max8997->buck125_gpios[0], set1); in max8997_set_gpio()63 gpio_set_value(max8997->buck125_gpios[1], set2); in max8997_set_gpio()64 gpio_set_value(max8997->buck125_gpios[2], set3); in max8997_set_gpio()276 struct max8997_data *max8997 = rdev_get_drvdata(rdev); in max8997_reg_is_enabled() local277 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_is_enabled()296 struct max8997_data *max8997 = rdev_get_drvdata(rdev); in max8997_reg_enable() local[all …]
31 obj-$(CONFIG_REGULATOR_MAX8997) += max8997.o
56 obj-$(CONFIG_MAX8997_MUIC) += max8997-muic.o
47 obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
147 module will be called max8997-haptic.