mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
128ac294e1
None of the in-tree instantiations of struct t7l66xb_platform_data
provides a disable callback. So better don't dereference this function
pointer unconditionally. As there is no user, drop it completely instead
of calling it conditional.
This is a preparation for making platform remove callbacks return void.
Fixes: 1f192015ca
("mfd: driver for the T7L66XB TMIO SoC")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220530192430.2108217-3-u.kleine-koenig@pengutronix.de
29 lines
622 B
C
29 lines
622 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* This file contains the definitions for the T7L66XB
|
|
*
|
|
* (C) Copyright 2005 Ian Molton <spyro@f2s.com>
|
|
*/
|
|
#ifndef MFD_T7L66XB_H
|
|
#define MFD_T7L66XB_H
|
|
|
|
#include <linux/mfd/core.h>
|
|
#include <linux/mfd/tmio.h>
|
|
|
|
struct t7l66xb_platform_data {
|
|
int (*enable)(struct platform_device *dev);
|
|
int (*suspend)(struct platform_device *dev);
|
|
int (*resume)(struct platform_device *dev);
|
|
|
|
int irq_base; /* The base for subdevice irqs */
|
|
|
|
struct tmio_nand_data *nand_data;
|
|
};
|
|
|
|
|
|
#define IRQ_T7L66XB_MMC (1)
|
|
#define IRQ_T7L66XB_NAND (3)
|
|
|
|
#define T7L66XB_NR_IRQS 8
|
|
|
|
#endif
|