mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
rk: gpio: fix GPIOPullType define and no clear FLAG_IS_OUT when pull updown
This commit is contained in:
parent
e23fcf37d3
commit
a0533e2189
|
|
@ -31,11 +31,10 @@ typedef enum eGPIOPinDirection
|
|||
|
||||
typedef enum GPIOPullType {
|
||||
PullDisable = 0,
|
||||
PullEnable,
|
||||
GPIONormal, //PullEnable, please do not use it
|
||||
GPIOPullUp, //PullEnable, please do not use it
|
||||
GPIOPullDown,//PullEnable, please do not use it
|
||||
GPIONOInit,//PullEnable, please do not use it
|
||||
PullEnable = 1,
|
||||
GPIONormal = PullDisable,
|
||||
GPIOPullUp = 1,
|
||||
GPIOPullDown = 2,
|
||||
}eGPIOPullType_t;
|
||||
|
||||
typedef enum GPIOIntType {
|
||||
|
|
|
|||
|
|
@ -284,11 +284,10 @@ typedef enum eGPIOPinDirection
|
|||
|
||||
typedef enum GPIOPullType {
|
||||
PullDisable = 0,
|
||||
PullEnable,
|
||||
GPIONormal, //PullEnable, please do not use it
|
||||
GPIOPullUp, //PullEnable, please do not use it
|
||||
GPIOPullDown,//PullEnable, please do not use it
|
||||
GPIONOInit,//PullEnable, please do not use it
|
||||
PullEnable = 1,
|
||||
GPIONormal = PullDisable,
|
||||
GPIOPullUp = 1,
|
||||
GPIOPullDown = 2,
|
||||
}eGPIOPullType_t;
|
||||
|
||||
typedef enum GPIOIntType {
|
||||
|
|
|
|||
|
|
@ -1529,8 +1529,6 @@ int gpio_pull_updown(unsigned gpio, unsigned value)
|
|||
}
|
||||
}
|
||||
status = chip->pull_updown(chip, gpio,value);
|
||||
if (status == 0)
|
||||
clear_bit(FLAG_IS_OUT, &desc->flags);
|
||||
|
||||
lose:
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user