gpiolib: remove debounce_period_us from struct gpio_desc
cdev is the only user of the debounce_period_us field in struct gpio_desc, and it no longer uses it, so remove it. Signed-off-by: Kent Gibson <warthog618@gmail.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
9344e34e79
commit
d8543cbaf9
2 changed files with 0 additions and 8 deletions
|
@ -2331,9 +2331,6 @@ static bool gpiod_free_commit(struct gpio_desc *desc)
|
||||||
clear_bit(FLAG_IS_HOGGED, &desc->flags);
|
clear_bit(FLAG_IS_HOGGED, &desc->flags);
|
||||||
#ifdef CONFIG_OF_DYNAMIC
|
#ifdef CONFIG_OF_DYNAMIC
|
||||||
desc->hog = NULL;
|
desc->hog = NULL;
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_GPIO_CDEV
|
|
||||||
WRITE_ONCE(desc->debounce_period_us, 0);
|
|
||||||
#endif
|
#endif
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,7 +149,6 @@ void gpiod_line_state_notify(struct gpio_desc *desc, unsigned long action);
|
||||||
* @label: Name of the consumer
|
* @label: Name of the consumer
|
||||||
* @name: Line name
|
* @name: Line name
|
||||||
* @hog: Pointer to the device node that hogs this line (if any)
|
* @hog: Pointer to the device node that hogs this line (if any)
|
||||||
* @debounce_period_us: Debounce period in microseconds
|
|
||||||
*
|
*
|
||||||
* These are obtained using gpiod_get() and are preferable to the old
|
* These are obtained using gpiod_get() and are preferable to the old
|
||||||
* integer-based handles.
|
* integer-based handles.
|
||||||
|
@ -187,10 +186,6 @@ struct gpio_desc {
|
||||||
#ifdef CONFIG_OF_DYNAMIC
|
#ifdef CONFIG_OF_DYNAMIC
|
||||||
struct device_node *hog;
|
struct device_node *hog;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_GPIO_CDEV
|
|
||||||
/* debounce period in microseconds */
|
|
||||||
unsigned int debounce_period_us;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define gpiod_not_found(desc) (IS_ERR(desc) && PTR_ERR(desc) == -ENOENT)
|
#define gpiod_not_found(desc) (IS_ERR(desc) && PTR_ERR(desc) == -ENOENT)
|
||||||
|
|
Loading…
Add table
Reference in a new issue