mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 18:46:53 +07:00
mfd: mt6323: Replace boilerplate resource code with DEFINE_RES_* macros
Simplifies and reduces LoC. Signed-off-by: Josef Friedl <josef.friedl@speed.at> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
09c1dec470
commit
7c3f7cd5a0
@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/ioport.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/of_device.h>
|
#include <linux/of_device.h>
|
||||||
#include <linux/of_irq.h>
|
#include <linux/of_irq.h>
|
||||||
@ -19,16 +20,8 @@
|
|||||||
#define MT6397_RTC_SIZE 0x3e
|
#define MT6397_RTC_SIZE 0x3e
|
||||||
|
|
||||||
static const struct resource mt6397_rtc_resources[] = {
|
static const struct resource mt6397_rtc_resources[] = {
|
||||||
{
|
DEFINE_RES_MEM(MT6397_RTC_BASE, MT6397_RTC_SIZE),
|
||||||
.start = MT6397_RTC_BASE,
|
DEFINE_RES_IRQ(MT6397_IRQ_RTC),
|
||||||
.end = MT6397_RTC_BASE + MT6397_RTC_SIZE,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.start = MT6397_IRQ_RTC,
|
|
||||||
.end = MT6397_IRQ_RTC,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct resource mt6323_keys_resources[] = {
|
static const struct resource mt6323_keys_resources[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user