Skip to content

Device table matching for SPI subsystem

Anton Vorontsov linux-mtd linuxppc-dev lkml lm-sensors 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 14 repliesIn review
  2. v17 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Implemented Ben Dooks' idea of spi_get_device_id(), so we won't call spi_match_id() twice for drivers that don't need the id.

- "spi: Merge probe and probe_id callbacks" patch no longer needed as we don't change probe()'s arguments;

- Rename spi_device_id->data to driver_data, and turn it into kernel_ulong_t to match majority of subsystems. Most drivers don't need a pointer type anyway (e.g. m25p80 needs it, but lm70 and adcxx don't);

- SPI_NAME_SIZE now defined to 32 (as it should be, using 20 for name size was a cut-n-paste typo from I2C defines).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6spi: Add support for device table matchingdrivers/spi/spi.c include/linux/mod_devicetable.h include/linux/spi/spi.h +1 more+54 -20 replies
2/6mtd: m25p80: Convert to device table matchingdrivers/mtd/devices/m25p80.c+80 -6633 replies
3/6of: Remove "stm,m25p40" aliasdrivers/of/base.c+0 -10 replies
4/6hwmon: adxx: Convert to device table matchingdrivers/hwmon/adcxx.c+16 -850 replies
5/6hwmon: lm70: Convert to device table matchingdrivers/hwmon/lm70.c+19 -360 replies
6/6spi: Prefix modalias with "spi:"drivers/gpio/max7301.c drivers/gpio/mcp23s08.c drivers/hwmon/lis3lv02d_spi.c +33 more+38 -80 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchAnton VorontsovMike Frysinger
1/6
2/6Not-yet-Signed-off-by A-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] Device table matching for SPI subsystem

Andrew,

This new patch set overwrites following patches:

hwmon-lm70-convert-to-device-table-matching.patch hwmon-adxx-convert-to-device-table-matching.patch spi-merge-probe-and-probe_id-callbacks.patch spi-prefix-modalias-with-spi.patch of-remove-stmm25p40-alias.patch mtd-m25p80-convert-to-device-table-matching.patch spi-add-support-for-device-table-matching.patch

Changes since v1:

- Implemented Ben Dooks' idea of spi_get_device_id(), so we won't call spi_match_id() twice for drivers that don't need the id.

- "spi: Merge probe and probe_id callbacks" patch no longer needed as we don't change probe()'s arguments;

- Rename spi_device_id->data to driver_data, and turn it into kernel_ulong_t to match majority of subsystems. Most drivers don't need a pointer type anyway (e.g. m25p80 needs it, but lm70 and adcxx don't);

- SPI_NAME_SIZE now defined to 32 (as it should be, using 20 for name size was a cut-n-paste typo from I2C defines).

Thanks!

Signature · 8 lines
Anton Vorontsov
email: [email protected]
irc://irc.freenode.net/bd2

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors