Skip to content

Remove most of_device_match() calls

Stephen Boyd linux-arm-kernel linux-arm-msm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2of: Assign of_device_id to matching device_nodedrivers/of/device.c include/linux/of.h include/linux/of_device.h+21 -100 replies
2/2gpio/omap: Use of_node->id_entry directlydrivers/gpio/gpio-omap.c+1 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC/PATCH 0/2] Remove most of_device_match() calls

Sending this as an RFC with one driver converted to see what people think. The goal is to avoid having to run the match twice and be similar to how platform_device_id works right now. If people agree I can go through and send out patches for all the drivers doing the duplicate search (~100 files).

Stephen Boyd (2):
of: Assign of_device_id to matching device_node
gpio/omap: Use of_node->id_entry directly

 drivers/gpio/gpio-omap.c  |  4 +---
 drivers/of/device.c       | 18 ++++++++++++++++++
 include/linux/of.h        |  1 +
 include/linux/of_device.h | 12 ++----------
 4 files changed, 22 insertions(+), 13 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation