diff options
| author | Dimitri Fedrau <dimitri.fedrau@liebherr.com> | 2025-07-23 20:34:56 +0300 |
|---|---|---|
| committer | Uwe Kleine-König <ukleinek@kernel.org> | 2025-07-24 10:20:39 +0300 |
| commit | 28517c8b6275a9cd25a4974d0e4d58eaba465a67 (patch) | |
| tree | 1866503b913403a2da8d2a8629f4c4b93b4d538d /include/linux | |
| parent | a582469541a3f39bed452c50c5d2744620b6db02 (diff) | |
| download | linux-28517c8b6275a9cd25a4974d0e4d58eaba465a67.tar.xz | |
pwm: mc33xs2410: add hwmon support
Support for hwmon is provided by a separate driver residing in hwmon
subsystem which is implemented as auxiliary device. Add handling of this
device.
Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
Link: https://lore.kernel.org/r/20250723-mc33xs2410-hwmon-v5-1-f62aab71cd59@liebherr.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mc33xs2410.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/mc33xs2410.h b/include/linux/mc33xs2410.h new file mode 100644 index 000000000000..31c0edf10dd7 --- /dev/null +++ b/include/linux/mc33xs2410.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2024 Liebherr-Electronics and Drives GmbH + */ +#ifndef _MC33XS2410_H +#define _MC33XS2410_H + +#include <linux/spi/spi.h> + +MODULE_IMPORT_NS("PWM_MC33XS2410"); + +int mc33xs2410_read_reg_ctrl(struct spi_device *spi, u8 reg, u16 *val); +int mc33xs2410_read_reg_diag(struct spi_device *spi, u8 reg, u16 *val); +int mc33xs2410_modify_reg(struct spi_device *spi, u8 reg, u8 mask, u8 val); + +#endif /* _MC33XS2410_H */ |
