gpio: remove GPIOD_REQUESTED
[oweals/u-boot.git] / include / asm-generic / gpio.h
index 05777e6afe0066aaa6c2fe476da52c3867932808..4064efeb8d0658f937051bb87c28d9dc664e8874 100644 (file)
@@ -117,11 +117,10 @@ struct udevice;
 struct gpio_desc {
        struct udevice *dev;    /* Device, NULL for invalid GPIO */
        unsigned long flags;
-#define GPIOD_REQUESTED                (1 << 0)        /* Requested/claimed */
-#define GPIOD_IS_OUT           (1 << 1)        /* GPIO is an output */
-#define GPIOD_IS_IN            (1 << 2)        /* GPIO is an input */
-#define GPIOD_ACTIVE_LOW       (1 << 3)        /* value has active low */
-#define GPIOD_IS_OUT_ACTIVE    (1 << 4)        /* set output active */
+#define GPIOD_IS_OUT           BIT(1)  /* GPIO is an output */
+#define GPIOD_IS_IN            BIT(2)  /* GPIO is an input */
+#define GPIOD_ACTIVE_LOW       BIT(3)  /* value has active low */
+#define GPIOD_IS_OUT_ACTIVE    BIT(4)  /* set output active */
 
        uint offset;            /* GPIO offset within the device */
        /*