mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

This is a preparation for the next commit adding support for register read and write functions on AD7606. Since sometimes a bus will be used, it has been agreed during ad3552's driver implementation that the device's driver bus is the backend, whose device node will be a child node. To provide the special callbacks for setting the register, axi-adc needs to pass them to the child device's driver through platform data. Signed-off-by: Angelo Dureghello <adureghello@baylibre.com> Link: https://patch.msgid.link/20250210-wip-bl-ad7606_add_backend_sw_mode-v4-5-160df18b1da7@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
16 lines
456 B
C
16 lines
456 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2010-2024 Analog Devices Inc.
|
|
* Copyright (c) 2025 Baylibre, SAS
|
|
*/
|
|
#ifndef __LINUX_PLATFORM_DATA_AD7606_H__
|
|
#define __LINUX_PLATFORM_DATA_AD7606_H__
|
|
|
|
struct iio_backend;
|
|
|
|
struct ad7606_platform_data {
|
|
int (*bus_reg_read)(struct iio_backend *back, u32 reg, u32 *val);
|
|
int (*bus_reg_write)(struct iio_backend *back, u32 reg, u32 val);
|
|
};
|
|
|
|
#endif /* __LINUX_PLATFORM_DATA_AD7606_H__ */
|