Uwe Kleine-König
72ba450562
iio: dac: ad5592r: Make ad5592r_remove() return void
...
Up to now ad5592r_remove() returns zero unconditionally. Make it return
void instead which makes it easier to see in the callers that there is
no error to handle.
Also the return value of i2c and spi remove callbacks is ignored anyway.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com >
Link: https://lore.kernel.org/r/20211013203223.2694577-10-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2021-10-19 08:30:45 +01:00
Jonathan Cameron
23636b479a
iio:dac:ad5592r: Drop of_match_ptr and ACPI_PTR protections.
...
These result in a very small reduction in driver size, but at the
cost of more complex build and slightly harder to read code.
In the case of of_match_ptr it also prevents use of PRP0001
ACPI based identification. In this particular case we have
a valid ACPI/PNP ID that I am assuming was issued by Analog
Devices. That should be used in preference to PRP0001 but doesn't
mean we should prevent that route.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Cc: Michael Hennerich <michael.hennerich@analog.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Link: https://lore.kernel.org/r/20200910173242.621168-11-jic23@kernel.org
2020-09-21 18:41:27 +01:00
Christophe JAILLET
256d4b83c0
iio: dac: ad5592r: Fix a typo in the name of a function
...
This module is related to AD5592R, not AD5593R, so be consistent in naming.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2020-05-03 09:47:21 +01:00
Thomas Gleixner
fda8d26e61
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177
...
Based on 1 normalized pattern(s):
licensed under the gpl 2
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 135 file(s).
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Allison Randal <allison@lohutok.net >
Reviewed-by: Richard Fontana <rfontana@redhat.com >
Reviewed-by: Alexios Zavras <alexios.zavras@intel.com >
Reviewed-by: Steve Winslow <swinslow@gmail.com >
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190528170026.071193225@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-05-30 11:29:19 -07:00
Michael Hennerich
b0570bcee3
iio: dac: ad5592r: Add ACPI support
...
This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
designed around the unified device property API.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2016-12-30 17:19:36 +00:00
Sandhya Bankar
38e442fc8b
drivers: iio: dac: Fix sparse warning
...
Fixing below warnings:
drivers/iio/dac/ad5592r.c:58:41: warning: incorrect type in argument 2 (different base types)
drivers/iio/dac/ad5592r.c:58:41: expected unsigned short [usertype] *buf
drivers/iio/dac/ad5592r.c:58:41: got restricted __be16 *<noident>
drivers/iio/dac/ad5592r.c:62:41: warning: incorrect type in argument 2 (different base types)
drivers/iio/dac/ad5592r.c:62:41: expected unsigned short [usertype] *buf
drivers/iio/dac/ad5592r.c:62:41: got restricted __be16 *<noident>
drivers/iio/dac/ad5592r.c:92:41: warning: incorrect type in argument 2 (different base types)
drivers/iio/dac/ad5592r.c:92:41: expected unsigned short [usertype] *buf
drivers/iio/dac/ad5592r.c:92:41: got restricted __be16 *<noident>
drivers/iio/dac/ad5592r.c:110:41: warning: incorrect type in argument 2 (different base types)
drivers/iio/dac/ad5592r.c:110:41: expected unsigned short [usertype] *buf
drivers/iio/dac/ad5592r.c:110:41: got restricted __be16 *<noident>
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2016-09-27 20:25:32 +01:00
Paul Cercueil
56ca9db862
iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs
...
This patch adds support for the AD5592R (spi) and AD5593R (i2c)
ADC/DAC/GPIO devices.
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com >
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2016-04-10 14:29:06 +01:00