mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
a27415decd
Allow an interrupt number to be passed in the platform data. The driver will then use it if not zero, otherwise it will poll for interrupts. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
19 lines
416 B
C
19 lines
416 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __DSA_MV88E6XXX_H
|
|
#define __DSA_MV88E6XXX_H
|
|
|
|
#include <linux/platform_data/dsa.h>
|
|
|
|
struct dsa_mv88e6xxx_pdata {
|
|
/* Must be first, such that dsa_register_switch() can access this
|
|
* without gory pointer manipulations
|
|
*/
|
|
struct dsa_chip_data cd;
|
|
const char *compatible;
|
|
unsigned int enabled_ports;
|
|
struct net_device *netdev;
|
|
u32 eeprom_len;
|
|
int irq;
|
|
};
|
|
|
|
#endif
|