driver: gpio: remove nano_timer code
drivers/gpio/gpio_pcal9535a.c defines a nano_timer, but never uses it. So delete it. gpio_sch.c uses a k_timer, but gpio_sch.h defines a nano_timer. So change the variable poll_timer to type k_timer. Jira: ZEP-1525 Change-Id: I884e4703c1ace61da5be7d9c63e58e7c3bce7f68 Signed-off-by: Qiu Peiyang <peiyangx.qiu@intel.com>
This commit is contained in:
parent
62ebe7200e
commit
ed0e5e6fd5
3 changed files with 1 additions and 6 deletions
|
@ -557,8 +557,6 @@ static int gpio_pcal9535a_init(struct device *dev)
|
||||||
}
|
}
|
||||||
drv_data->i2c_master = i2c_master;
|
drv_data->i2c_master = i2c_master;
|
||||||
|
|
||||||
nano_timer_init(&drv_data->timer, (void *) 0);
|
|
||||||
|
|
||||||
dev->driver_api = &gpio_pcal9535a_drv_api_funcs;
|
dev->driver_api = &gpio_pcal9535a_drv_api_funcs;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -59,9 +59,6 @@ struct gpio_pcal9535a_drv_data {
|
||||||
*/
|
*/
|
||||||
uint32_t out_pol_inv;
|
uint32_t out_pol_inv;
|
||||||
|
|
||||||
/** Use for delay between operations */
|
|
||||||
struct nano_timer timer;
|
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
union gpio_pcal9535a_port_data output;
|
union gpio_pcal9535a_port_data output;
|
||||||
union gpio_pcal9535a_port_data pol_inv;
|
union gpio_pcal9535a_port_data pol_inv;
|
||||||
|
|
|
@ -45,7 +45,7 @@ struct gpio_sch_config {
|
||||||
struct gpio_sch_data {
|
struct gpio_sch_data {
|
||||||
char __stack polling_stack[GPIO_SCH_POLLING_STACK_SIZE];
|
char __stack polling_stack[GPIO_SCH_POLLING_STACK_SIZE];
|
||||||
sys_slist_t callbacks;
|
sys_slist_t callbacks;
|
||||||
struct nano_timer poll_timer;
|
struct k_timer poll_timer;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
uint32_t gtpe;
|
uint32_t gtpe;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue