iio: pressure: mprls0025pa remove defaults
authorPetre Rodan <petre.rodan@subdimension.ro>
Fri, 29 Dec 2023 09:24:34 +0000 (11:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 23 Jan 2024 22:06:53 +0000 (22:06 +0000)
commitb586b40e1952a343ae68142d16512f39596ca71b
treef337ba72ed6298a69eb10051a8fb1b9e04148d97
parent0a0fb0e63e5178905e9fdba8195686b4e2de26c4
iio: pressure: mprls0025pa remove defaults

This driver supports 32*3 combinations of fixed ranges and transfer
functions, plus custom ranges.

So statistically a user has more than 99% chance that the provided
default configuration will generate invalid pressure readings if the
bindings are not initialized and the driver is instantiated via sysfs.

The current patch removes this loophole making sure the driver loads
only if the firmware properties are present.

Co-developed-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Link: https://lore.kernel.org/r/20231229092445.30180-7-petre.rodan@subdimension.ro
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/mprls0025pa.c