linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: adc: add ADC driver for the TI LMP92064
@ 2022-10-25 13:00 Leonard Göhrs
  0 siblings, 0 replies; only message in thread
From: Leonard Göhrs @ 2022-10-25 13:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernel


Changes from v1 -> v2:

 - Rebase from 6.0 to 6.1-rc2 to get access to devm_regulator_get_enable.
 - Use regmap instead of raw SPI commands. This fixes multiple issues:
   - Remove need to assemble register address using bit shifts.
   - Remove non DMA-safe stack-allocated buffers.
   - Regmap has internal lock handling, removing the need for locking in the
     driver read code using mlock.
 - Use be16_to_cpu() instead of manually assembling values using bit shifts.
 - Use generic device_property_read_u32() instead of devicetree specific
   of_property_read_u32().
 - Rename the "shunt-resistor" devicetree property to
   "shunt-resistor-micro-ohms".
 - Add supply regulator support for the two voltage domains of the chip
   (vdd and vdig).
 - Only perform soft reset if no GPIO line for hard resets is available.
 - Change the error returned if the device does not respond after a reset
   from "EBUSY" to "ENXIO" to indicate that this is likely a persistent
   error (like a broken connection).
 - Don't set the SPI mode manually.
 - Provide a spi_device_id table.
 - Declare local variables in reverse christmas tree order.
 - Fix formatting of multi-line comments and some whitespace issues.
 - Fix typos and missing "allOf:$ref to spi-peripheral-props.yaml"
   in devicetree bindings.

See https://lore.kernel.org/lkml/20221004134238.3144326-1-l.goehrs@pengutronix.de/
for the v1.
 
Thanks to Marcus, Jonathan and Krzysztof for the reviews.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-25 13:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 13:00 [PATCH v2 0/2] iio: adc: add ADC driver for the TI LMP92064 Leonard Göhrs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).