Source
17
17
*/
18
18
19
19
/* Supports:
20
20
* Freescale MC33880 high-side/low-side switch
21
21
*/
22
22
23
23
#include <linux/init.h>
24
24
#include <linux/mutex.h>
25
25
#include <linux/spi/spi.h>
26
26
#include <linux/spi/mc33880.h>
27
-
#include <linux/gpio.h>
27
+
#include <linux/gpio/driver.h>
28
28
#include <linux/slab.h>
29
29
#include <linux/module.h>
30
30
31
31
#define DRIVER_NAME "mc33880"
32
32
33
33
/*
34
34
* Pin configurations, see MAX7301 datasheet page 6
35
35
*/
36
36
#define PIN_CONFIG_MASK 0x03
37
37
#define PIN_CONFIG_IN_PULLUP 0x03