Skip to content

can: mcp251x: Make use of device properties

Andy Shevchenko linux-can netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- add patch 4 to get rid of legacy platform data

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4can: mcp251x: Use devm_clk_get_optional() to get the input clockdrivers/net/can/spi/mcp251x.c+12 -180 replies
2/4can: mcp251x: Make use of device property APIdrivers/net/can/spi/mcp251x.c+5 -70 replies
3/4can: mcp251x: Call wrapper instead of regulator_disable()drivers/net/can/spi/mcp251x.c+2 -40 replies
4/4can: mcp251x: Get rid of legacy platform dataarch/arm/mach-pxa/icontrol.c arch/arm/mach-pxa/zeus.c drivers/net/can/spi/mcp251x.c +1 more+18 -412 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] can: mcp251x: Make use of device properties

The purpose of this series is to simplify driver by switching to use device properties. In particular it allows to drop legacy platform data.

Patch 1 switches driver to use devm_clk_get_optional() API.

Patch 2 unifies getting the driver data independently of the table which provides it.

Patch 3 drops extra check for regulator presence by switch to use an already present wrapper.

And patch 4 gets rid of legacy platform data.

Changelog v2:
- add patch 4 to get rid of legacy platform data

Andy Shevchenko (4):
can: mcp251x: Use devm_clk_get_optional() to get the input clock
can: mcp251x: Make use of device property API
can: mcp251x: Call wrapper instead of regulator_disable()
can: mcp251x: Get rid of legacy platform data

 arch/arm/mach-pxa/icontrol.c         |  9 ++--
 arch/arm/mach-pxa/zeus.c             |  9 ++--
 drivers/net/can/spi/mcp251x.c        | 65 +++++++++++-----------------
 include/linux/can/platform/mcp251x.h | 22 ----------
 4 files changed, 36 insertions(+), 69 deletions(-)
 delete mode 100644 include/linux/can/platform/mcp251x.h
Signature · 1 line
2.23.0.rc1