mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Input: ucb1400_ts - allow passing IRQ through platfrom_data
This patch allows UCB1400 to get IRQ GPIO from platform data. In case platform_data are not supplied or the IRQ supplied in the platform_data is negative, fall back to the old IRQ detection algorithm. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
765af10de6
commit
fb14159755
3 changed files with 18 additions and 4 deletions
|
@ -110,6 +110,10 @@ struct ucb1400 {
|
|||
struct platform_device *ucb1400_gpio;
|
||||
};
|
||||
|
||||
struct ucb1400_pdata {
|
||||
int irq;
|
||||
};
|
||||
|
||||
static inline u16 ucb1400_reg_read(struct snd_ac97 *ac97, u16 reg)
|
||||
{
|
||||
return ac97->bus->ops->read(ac97, reg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue