mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 00:19:36 +00:00

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>
17 lines
463 B
C
17 lines
463 B
C
/* 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 */
|