Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: mcp9600: White space and fixed width cleanup

Make tabs consistent for register definitions and also fix width
to byte size.

Signed-off-by: Ben Collins <bcollins@watter.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <abdy@kernel.org>
Reviewed-by: David Lechner <dlechner@baylibrc.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://patch.msgid.link/20250822-upstream-changes-v8-3-40bb1739e3e2@watter.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Ben Collins and committed by
Jonathan Cameron
74cae3eb f6a52403

+7 -7
+7 -7
drivers/iio/temperature/mcp9600.c
··· 23 23 #include <linux/iio/iio.h> 24 24 25 25 /* MCP9600 registers */ 26 - #define MCP9600_HOT_JUNCTION 0x0 27 - #define MCP9600_COLD_JUNCTION 0x2 28 - #define MCP9600_STATUS 0x4 26 + #define MCP9600_HOT_JUNCTION 0x00 27 + #define MCP9600_COLD_JUNCTION 0x02 28 + #define MCP9600_STATUS 0x04 29 29 #define MCP9600_STATUS_ALERT(x) BIT(x) 30 - #define MCP9600_ALERT_CFG1 0x8 30 + #define MCP9600_ALERT_CFG1 0x08 31 31 #define MCP9600_ALERT_CFG(x) (MCP9600_ALERT_CFG1 + (x - 1)) 32 32 #define MCP9600_ALERT_CFG_ENABLE BIT(0) 33 33 #define MCP9600_ALERT_CFG_ACTIVE_HIGH BIT(2) 34 34 #define MCP9600_ALERT_CFG_FALLING BIT(3) 35 35 #define MCP9600_ALERT_CFG_COLD_JUNCTION BIT(4) 36 - #define MCP9600_ALERT_HYSTERESIS1 0xc 36 + #define MCP9600_ALERT_HYSTERESIS1 0x0c 37 37 #define MCP9600_ALERT_HYSTERESIS(x) (MCP9600_ALERT_HYSTERESIS1 + (x - 1)) 38 38 #define MCP9600_ALERT_LIMIT1 0x10 39 39 #define MCP9600_ALERT_LIMIT(x) (MCP9600_ALERT_LIMIT1 + (x - 1)) 40 40 #define MCP9600_ALERT_LIMIT_MASK GENMASK(15, 2) 41 - #define MCP9600_DEVICE_ID 0x20 41 + #define MCP9600_DEVICE_ID 0x20 42 42 43 43 /* MCP9600 device id value */ 44 - #define MCP9600_DEVICE_ID_MCP9600 0x40 44 + #define MCP9600_DEVICE_ID_MCP9600 0x40 45 45 46 46 #define MCP9600_ALERT_COUNT 4 47 47