mfd: Add support for TI LMP92001 driver
PATCH 1/5 mfd: Add support for TI LMP92001 driver
From: Abhisit Sangjan <[email protected]>
--- drivers/mfd/Kconfig | 12 ++ drivers/mfd/Makefile | 3 + drivers/mfd/lmp92001-core.c | 311 +++++++++++++++++++++++++++++++++++++ drivers/mfd/lmp92001-debug.c | 67 ++++++++ drivers/mfd/lmp92001-i2c.c | 217 ++++++++++++++++++++++++++ include/linux/mfd/lmp92001/core.h | 109 +++++++++++++ include/linux/mfd/lmp92001/debug.h | 21 +++ 7 files changed, 740 insertions(+) create mode 100644 drivers/mfd/lmp92001-core.c create mode 100644 drivers/mfd/lmp92001-debug.c create mode 100644 drivers/mfd/lmp92001-i2c.c create mode 100644 include/linux/mfd/lmp92001/core.h create mode 100644 include/linux/mfd/lmp92001/debug.h
drivers/mfd/Kconfig +12 -0
@@ -1551,6 +1551,18 @@ config MFD_TC3589X additional drivers must be enabled in order to use the functionality of the device. +config MFD_LMP92001 + tristate "TI LMP92001 Analog System Monitor and Controller" + depends on I2C + select MFD_CORE + select REGMAP_I2C + help + Say yes here to enable support for TI LMP92001 Analog System + Monitor and Controller + + This driver provide support for 16 ADC, 12 DAC, Voltage Reference, + Analog Temperature Sensor and 8-bit GPIO Port. + config MFD_TMIO bool default n
drivers/mfd/Makefile +3 -0
@@ -212,6 +212,9 @@ obj-$(CONFIG_MFD_DLN2) += dln2.o obj-$(CONFIG_MFD_RT5033) += rt5033.o obj-$(CONFIG_MFD_SKY81452) += sky81452.o +lmp92001-objs := lmp92001-core.o lmp92001-i2c.o lmp92001-debug.o +obj-$(CONFIG_MFD_LMP92001) += lmp92001.o + intel-soc-pmic-objs := intel_soc_pmic_core.o intel_soc_pmic_crc.o obj-$(CONFIG_INTEL_SOC_PMIC) += intel-soc-pmic.o obj-$(CONFIG_INTEL_SOC_PMIC_BXTWC) += intel_soc_pmic_bxtwc.o
drivers/mfd/lmp92001-core.c new file +311 -0
311 lines not on this page · raw message
drivers/mfd/lmp92001-debug.c new file +67 -0
67 lines not on this page · raw message
drivers/mfd/lmp92001-i2c.c new file +217 -0
217 lines not on this page · raw message
include/linux/mfd/lmp92001/core.h new file +109 -0
109 lines not on this page · raw message
include/linux/mfd/lmp92001/debug.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* include/linux/mfd/lmp92001/debug.h -- Debug interface for TI 92001 +* +* Copyright 20016 Celestica Ltd. +* +* Author: Abhisit Sangjan <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +* +*/ + +#ifndef __MFD_LMP92001_DEBUG_H__ +#define __MFD_LMP92001_DEBUG_H__ + +int lmp92001_debug_init (struct lmp92001 *lmp92001); +void lmp92001_debug_exit (struct lmp92001 *lmp92001); + +#endif /* __MFD_LMP92001_DEBUG_H__ */
Signature · 1 line
2.7.4
kbuild test robot
build bot[PATCH] mfd: fix platform_no_drv_owner.cocci warnings
drivers/mfd/lmp92001-i2c.c:192:25-30: No need to set .owner here. The core will do it.
drivers/mfd/lmp92001-i2c.c:192:25-30: No need to set .owner here. The core will do it.
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
---
lmp92001-i2c.c | 1 - 1 file changed, 1 deletion(-)
drivers/mfd/lmp92001-i2c.c +0 -1
@@ -189,7 +189,6 @@ static int lmp92001_i2c_detect(struct i2static struct i2c_driver lmp92001_i2c_driver = { .driver = { - .owner =THIS_MODULE , .name ="lmp92001" , .of_match_table =of_match_ptr (lmp92001_dt_ids), },
kbuild test robot
build botcoccinelle warnings: (new ones prefixed by >>)
Hi Abhisit,
[auto build test WARNING on ljones-mfd/for-mfd-next]
[also build test WARNING on v4.13-rc3 next-20170801]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/s-abhisit-gmail-com/mfd-Add-support-for-TI-LMP92001-driver/20170801-190244 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
coccinelle warnings: (new ones prefixed by >>)
>> drivers/mfd/lmp92001-i2c.c:192:25-30: No need to set .owner here. The core will do it.
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Quoted 16 lines · On Tue, 01 Aug 2017, [email protected] wrote:
From: Abhisit Sangjan <[email protected]>
--- drivers/mfd/Kconfig | 12 ++ drivers/mfd/Makefile | 3 + drivers/mfd/lmp92001-core.c | 311 +++++++++++++++++++++++++++++++++++++ drivers/mfd/lmp92001-debug.c | 67 ++++++++ drivers/mfd/lmp92001-i2c.c | 217 ++++++++++++++++++++++++++ include/linux/mfd/lmp92001/core.h | 109 +++++++++++++ include/linux/mfd/lmp92001/debug.h | 21 +++ 7 files changed, 740 insertions(+) create mode 100644 drivers/mfd/lmp92001-core.c create mode 100644 drivers/mfd/lmp92001-debug.c create mode 100644 drivers/mfd/lmp92001-i2c.c create mode 100644 include/linux/mfd/lmp92001/core.h create mode 100644 include/linux/mfd/lmp92001/debug.h
If you haven't already done so, please fix the build-bot's reported issues and resubmit.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog