Searched refs:rt5033 (Results 1 - 5 of 5) sorted by relevance
/linux-4.1.27/drivers/mfd/ |
H A D | rt5033.c | 20 #include <linux/mfd/rt5033.h> 21 #include <linux/mfd/rt5033-private.h> 33 .name = "rt5033", 43 { .name = "rt5033-regulator", }, 45 .name = "rt5033-charger", 46 .of_compatible = "richtek,rt5033-charger", 48 .name = "rt5033-battery", 49 .of_compatible = "richtek,rt5033-battery", 62 struct rt5033_dev *rt5033; rt5033_i2c_probe() local 66 rt5033 = devm_kzalloc(&i2c->dev, sizeof(*rt5033), GFP_KERNEL); rt5033_i2c_probe() 67 if (!rt5033) rt5033_i2c_probe() 70 i2c_set_clientdata(i2c, rt5033); rt5033_i2c_probe() 71 rt5033->dev = &i2c->dev; rt5033_i2c_probe() 72 rt5033->irq = i2c->irq; rt5033_i2c_probe() 73 rt5033->wakeup = true; rt5033_i2c_probe() 75 rt5033->regmap = devm_regmap_init_i2c(i2c, &rt5033_regmap_config); rt5033_i2c_probe() 76 if (IS_ERR(rt5033->regmap)) { rt5033_i2c_probe() 78 return PTR_ERR(rt5033->regmap); rt5033_i2c_probe() 81 ret = regmap_read(rt5033->regmap, RT5033_REG_DEVICE_ID, &dev_id); rt5033_i2c_probe() 88 ret = regmap_add_irq_chip(rt5033->regmap, rt5033->irq, rt5033_i2c_probe() 90 0, &rt5033_irq_chip, &rt5033->irq_data); rt5033_i2c_probe() 93 rt5033->irq, ret); rt5033_i2c_probe() 97 ret = mfd_add_devices(rt5033->dev, -1, rt5033_devs, rt5033_i2c_probe() 99 regmap_irq_get_domain(rt5033->irq_data)); rt5033_i2c_probe() 105 device_init_wakeup(rt5033->dev, rt5033->wakeup); rt5033_i2c_probe() 118 { "rt5033", }, 124 { .compatible = "richtek,rt5033", }, 130 .name = "rt5033", 139 MODULE_ALIAS("i2c:rt5033");
|
H A D | Makefile | 182 obj-$(CONFIG_MFD_RT5033) += rt5033.o
|
/linux-4.1.27/drivers/regulator/ |
H A D | rt5033-regulator.c | 15 #include <linux/mfd/rt5033.h> 16 #include <linux/mfd/rt5033-private.h> 86 struct rt5033_dev *rt5033 = dev_get_drvdata(pdev->dev.parent); rt5033_regulator_probe() local 90 config.dev = rt5033->dev; rt5033_regulator_probe() 91 config.driver_data = rt5033; rt5033_regulator_probe() 96 config.regmap = rt5033->regmap; rt5033_regulator_probe() 113 { "rt5033-regulator", }, 120 .name = "rt5033-regulator",
|
/linux-4.1.27/include/linux/mfd/ |
H A D | rt5033.h | 40 struct rt5033_dev *rt5033; member in struct:rt5033_battery 56 struct rt5033_dev *rt5033; member in struct:rt5033_charger
|
/linux-4.1.27/drivers/power/ |
H A D | rt5033_battery.c | 15 #include <linux/mfd/rt5033-private.h> 16 #include <linux/mfd/rt5033.h> 111 .name = "rt5033-battery", 165 { "rt5033-battery", }, 172 .name = "rt5033-battery",
|
Completed in 132 milliseconds