Uwe Kleine-König
7cf15f4275
iio: Switch i2c drivers back to use .probe()
...
After commit b8a1a4cd5a ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498 ("i2c: Switch .probe() to not take an id parameter") convert
back to (the new) .probe() to be able to eventually drop .probe_new() from
struct i2c_driver.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Link: https://lore.kernel.org/r/20230515205048.19561-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2023-05-21 18:54:53 +01:00
Uwe Kleine-König
d7c9422850
iio: temperature: tsys01: Convert to i2c's .probe_new()
...
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-190-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:20:32 +00:00
Jonathan Cameron
a7f6cecfef
iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS
...
The obvious choice of ms_sensors felt rather too likely to clash with other
namespaces introduced in future, hence the longer abbreviation.
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com >
Cc: William Markezana <william.markezana@meas-spec.com >
Cc: Ludovic Tancerel <ludovic.tancerel@maplehightech.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-5-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
c5b411bc9a
iio:temperature:tsys01: Drop of_match_ptr protection
...
This prevents use of this driver with ACPI via PRP0001 and is
an example of an anti pattern I'm trying to remove from IIO.
Hence drop from this driver.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Cc: Ludovic Tancerel <ludovic.tancerel@maplehightech.com >
Link: https://lore.kernel.org/r/20200910173242.621168-22-jic23@kernel.org
2020-09-21 18:41:30 +01:00
Alexandru Ardelean
8f73a13f74
iio: remove left-over parent assignments
...
These were found by doing some shell magic:
------------
for file in $(git grep -w devm_iio_device_alloc | cut -d: -f1 | sort | uniq) ; do
if grep 'parent =' $file | grep -v trig | grep -vq devm_; then
echo "$file -> $(grep "parent =" $file)"
fi
done
-----------
The output is bearable [after the semantic patch is applied].
There is a mix of trigger assignments with some iio device parent
assignments that are removed via this patch.
JC: A few more added via inspection of all parent =
statements in drivers/iio. Some of these may just have crossed with this
series, others were less obvious to scripting due to some cross
file / module boundary calls.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2020-06-14 11:50:04 +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
Jonathan Cameron
5e42916ad9
iio:temperature: drop assignment of iio_info.driver_module
...
The equivalent of this is now done via macro magic when
the relevant register call is made. The actual structure
elements will shortly go away.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de >
2017-08-22 22:14:52 +01:00
Manivannan Sadhasivam
55eaac2b99
iio: temperature: tsys01: Add OF match table
...
Add of_match_table for Measurement Specialties TSYS01 temperature sensor
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2017-07-01 10:16:42 +01:00
Matt Ranostay
f8d9d3b434
iio: convert to common i2c_check_functionality() return value
...
Previously most drivers that used a i2c_check_functionality() check
condition required various error codes on failure. This patchset
converts to a standard of -EOPNOTSUPP
Signed-off-by: Matt Ranostay <mranostay@gmail.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2016-02-27 17:17:43 +00:00
Ludovic Tancerel
43e53407f6
Add tsys01 meas-spec driver support
...
Support for TSYS01 temperature sensor
Signed-off-by: Ludovic Tancerel <ludovic.tancerel@maplehightech.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2015-10-04 15:02:28 +01:00