[PATCH] mcp3021: rework for DT support of reference-voltage

2016-10-18 Thread Clemens Gruber
change S_IRUGO to the better readable 0444, which fixes a checkpatch warning. Signed-off-by: Clemens Gruber --- .../devicetree/bindings/hwmon/mcp3021.txt | 21 +++ Documentation/hwmon/mcp3021| 5 + drivers/hwmon/mcp3021.c| 184

[PATCH 1/2] hwmon: (mcp3021) rework for DT support

2016-10-19 Thread Clemens Gruber
fixes a checkpatch warning. Signed-off-by: Clemens Gruber --- Documentation/hwmon/mcp3021 | 5 ++ drivers/hwmon/mcp3021.c | 143 +++- 2 files changed, 107 insertions(+), 41 deletions(-) diff --git a/Documentation/hwmon/mcp3021 b/Documentation/hwmon

[PATCH v2 1/3] hwmon: (mcp3021) rework for DT support

2016-10-27 Thread Clemens Gruber
Support setting the reference voltage from the device tree. Rework of driver structure, put chip specific data in a separate structure and assign it depending on device id from platform data or DT match. Signed-off-by: Clemens Gruber --- Documentation/hwmon/mcp3021 | 6 ++ drivers/hwmon

[PATCH v2 3/3] hwmon: (mcp3021) replace S_IRUGO with 0444

2016-10-27 Thread Clemens Gruber
Replace S_IRUGO with the better readable 0444. This fixes a checkpatch warning. Signed-off-by: Clemens Gruber --- drivers/hwmon/mcp3021.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/mcp3021.c b/drivers/hwmon/mcp3021.c index a8cf97f..97c832d 100644 --- a

[PATCH v2 2/3] hwmon: (mcp3021) add devicetree bindings documentation

2016-10-27 Thread Clemens Gruber
Document the devicetree bindings for the Microchip MCP3021/3221. Signed-off-by: Clemens Gruber --- Documentation/devicetree/bindings/hwmon/mcp3021.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/mcp3021.txt diff --git