]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: iio: ad9832: remove platform_data support
authorTomas Borquez <tomasborquez13@gmail.com>
Fri, 5 Dec 2025 20:27:41 +0000 (17:27 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 11:10:26 +0000 (11:10 +0000)
commitc7f9c36b7921235453828bfff1ad6f081267a7ec
treebb2ed9f2eb17adb3dc0abac9bc06602a5ec40d4b
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
staging: iio: ad9832: remove platform_data support

Remove legacy platform_data support as there are no in tree users and
this approach belongs to a long gone era. The policy decision on what
to output is a userspace problem, not something that should be provided
from firmware.

The driver now initializes the device to a safe state (SLEEP|RESET|CLR)
outputting nothing. Userspace can configure the desired frequencies and
phases via the existing sysfs attributes once the device is ready to be
used.

Original discussion started here [1].

Link: https://lore.kernel.org/linux-iio/20250628161040.3d21e2c4@jic23-huawei/
Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Tomas Borquez <tomasborquez13@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/frequency/ad9832.c
drivers/staging/iio/frequency/ad9832.h [deleted file]