diff options
| author | André Draszik <andre.draszik@linaro.org> | 2025-04-09 21:37:39 +0100 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2025-05-23 08:48:44 +0100 |
| commit | adf91d9e1983dec3d5fabc273e8ff89918b852c1 (patch) | |
| tree | d779a5e98468f47a4b9e0e6d3c078e21250d206f /include/linux/mfd | |
| parent | aaaeae7e2ad1574fad3c68e249f02fa87a600516 (diff) | |
mfd: sec: Change device_type to int
Now that sec-i2c doesn't match device type by pointer casting anymore,
we can switch the device type from unsigned long to int easily.
This saves a few bytes in struct sec_pmic_dev due to member alignment.
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-18-d66d5f39b6bf@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/samsung/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mfd/samsung/core.h b/include/linux/mfd/samsung/core.h index c1102324172a..d785e101fe79 100644 --- a/include/linux/mfd/samsung/core.h +++ b/include/linux/mfd/samsung/core.h @@ -67,7 +67,7 @@ struct sec_pmic_dev { struct regmap *regmap_pmic; struct i2c_client *i2c; - unsigned long device_type; + int device_type; int irq; struct regmap_irq_chip_data *irq_data; }; |
