Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_PCA953X_H
0003 #define _LINUX_PCA953X_H
0004 
0005 #include <linux/types.h>
0006 #include <linux/i2c.h>
0007 
0008 /* platform data for the PCA9539 16-bit I/O expander driver */
0009 
0010 struct pca953x_platform_data {
0011     /* number of the first GPIO */
0012     unsigned    gpio_base;
0013 
0014     /* initial polarity inversion setting */
0015     u32     invert;
0016 
0017     /* interrupt base */
0018     int     irq_base;
0019 
0020     void        *context;   /* param to setup/teardown */
0021 
0022     int     (*setup)(struct i2c_client *client,
0023                 unsigned gpio, unsigned ngpio,
0024                 void *context);
0025     int     (*teardown)(struct i2c_client *client,
0026                 unsigned gpio, unsigned ngpio,
0027                 void *context);
0028     const char  *const *names;
0029 };
0030 
0031 #endif /* _LINUX_PCA953X_H */