Messages in this thread Patch in this message | | | From | Davide Ciminaghi <> | Subject | [PATCH 11/14] sta2x11-mfd : add defines for platform devices' names | Date | Mon, 11 Jun 2012 02:57:56 +0200 |
| |
From: Davide Ciminaghi <ciminaghi@gnudd.com>
Since there are now many mfd platform devices, using defines for their names seems to be a better solution (avoids wasting time in case of typos, makes it easier to change the name of a device, ....).
Signed-off-by: Davide Ciminaghi <ciminaghi@gnudd.com> --- include/linux/mfd/sta2x11-mfd.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/linux/mfd/sta2x11-mfd.h b/include/linux/mfd/sta2x11-mfd.h index 4d85879..85b2c20 100644 --- a/include/linux/mfd/sta2x11-mfd.h +++ b/include/linux/mfd/sta2x11-mfd.h @@ -37,6 +37,14 @@ enum sta2x11_mfd_plat_dev { sta2x11_n_mfd_plat_devs, }; +#define STA2X11_MFD_SCTL_NAME "sta2x11-sctl" +#define STA2X11_MFD_GPIO_NAME "sta2x11-gpio" +#define STA2X11_MFD_SCR_NAME "sta2x11-scr" +#define STA2X11_MFD_TIME_NAME "sta2x11-time" +#define STA2X11_MFD_APBREG_NAME "sta2x11-apbreg" +#define STA2X11_MFD_APB_SOC_REGS_NAME "sta2x11-apb-soc-regs" +#define STA2X11_MFD_VIC_NAME "sta2x11-vic" + extern u32 __sta2x11_mfd_mask(struct pci_dev *, u32, u32, u32, enum sta2x11_mfd_plat_dev); -- 1.7.9.1
| |