Source
18
18
*
19
19
* You should have received a copy of the GNU General Public License
20
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
21
*
22
22
*/
23
23
#include <linux/init.h>
24
24
#include <linux/kernel.h>
25
25
#include <linux/slab.h>
26
26
#include <linux/platform_device.h>
27
27
#include <linux/device.h>
28
-
#include <linux/gpio.h>
28
+
#include <linux/gpio/driver.h>
29
29
#include <linux/mfd/rc5t583.h>
30
30
31
31
struct rc5t583_gpio {
32
32
struct gpio_chip gpio_chip;
33
33
struct rc5t583 *rc5t583;
34
34
};
35
35
36
36
static int rc5t583_gpio_get(struct gpio_chip *gc, unsigned int offset)
37
37
{
38
38
struct rc5t583_gpio *rc5t583_gpio = gpiochip_get_data(gc);