DORMANTno replies

Revision rfc of 2 in this series.

Revisions (2)
  1. rfc [diff vs current]
  2. rfc current

[RFC RESEND PATCH 3.7.0-rc4 0/4] introduce of_simple_module_id_table macro

From: Srinivas KANDAGATLA <hidden>
Date: 2012-11-16 13:27:20
Also in: linux-mmc

From: Srinivas Kandagatla <redacted>

This patch series introduces of_simple_module_id_table macro and as an example
uses this macro in 3 files.

Most of the device tree supported drivers have of_device_id table setup with 
single compatible entry, this use-case is very simple and common.

#ifdef CONFIG_OF
static struct of_device_id xxx_of_match[] = {
	{ .compatible = "yyy,zzz" },
	{ },
};
MODULE_DEVICE_TABLE(of, xxx_of_match);
#endif

This patch adds a macro for this simple type of device table.
Other subsystems like pm, platform, have similar macros in kernel for
simplest cases.
Now the user can just replace the above code with

of_simple_module_id_table(xxx_of_match, "yyy,zzz");

There are more than 200+ hits for this type of pattern in the current kernel.

Am happy to run a script to generate cleanup patches for the hits,
However I would like to know your overall opinion on this type of patch.

Sorry for the first mail, my script used "mm" instead of "mmc".
Thanks,
srini

Srinivas Kandagatla (4):
  of: introduce of_simple_module_id_table macro.
  mmc:exynos: use of_simple_module_id_table macro.
  mmc:sdhci-spear: use of_simple_module_id_table macro.
  mmc:shmobile: use of_simple_module_id_table macro.

 drivers/mmc/host/dw_mmc-exynos.c  |    7 +------
 drivers/mmc/host/sdhci-spear.c    |    8 +-------
 drivers/mmc/host/sh_mobile_sdhi.c |    6 +-----
 include/linux/of.h                |   10 ++++++++++
 4 files changed, 13 insertions(+), 18 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help