mfd: 88pm805: Use DEFINE_RES_IRQ_NAMED() to simplify code
No functional change. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
5c058e92ad
commit
ba4672ad10
@ -54,27 +54,14 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct resource codec_resources[] = {
|
static struct resource codec_resources[] = {
|
||||||
{
|
/* Headset microphone insertion or removal */
|
||||||
/* Headset microphone insertion or removal */
|
DEFINE_RES_IRQ_NAMED(PM805_IRQ_MIC_DET, "micin"),
|
||||||
.name = "micin",
|
|
||||||
.start = PM805_IRQ_MIC_DET,
|
/* Audio short HP1 */
|
||||||
.end = PM805_IRQ_MIC_DET,
|
DEFINE_RES_IRQ_NAMED(PM805_IRQ_HP1_SHRT, "audio-short1"),
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
/* Audio short HP2 */
|
||||||
{
|
DEFINE_RES_IRQ_NAMED(PM805_IRQ_HP2_SHRT, "audio-short2"),
|
||||||
/* Audio short HP1 */
|
|
||||||
.name = "audio-short1",
|
|
||||||
.start = PM805_IRQ_HP1_SHRT,
|
|
||||||
.end = PM805_IRQ_HP1_SHRT,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
/* Audio short HP2 */
|
|
||||||
.name = "audio-short2",
|
|
||||||
.start = PM805_IRQ_HP2_SHRT,
|
|
||||||
.end = PM805_IRQ_HP2_SHRT,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct mfd_cell codec_devs[] = {
|
static const struct mfd_cell codec_devs[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user