drivers: Remove unused parameter warning

This patch fixes the unused parameter warning found at the
following drivers:

- adc_ti_adc108s102.c
- gpio_dw.c
- gpio_k64.c
- exti_stm32.c
- pinmux_dev_atmel_sam3x.c
- pinmux_dev_k64.c
- pinmux_dev_stm32.c
- uart_atmel_sam3.c

Change-Id: I76a17d19176683130d57e8f48e5195e7785060f3
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
Flavio Santes 2016-12-02 18:21:17 -06:00 committed by Anas Nashif
commit 290a2aba88
8 changed files with 26 additions and 0 deletions

View file

@ -111,6 +111,8 @@ static inline int32_t _ti_adc108s102_prepare(struct device *dev)
static void ti_adc108s102_enable(struct device *dev)
{
ARG_UNUSED(dev);
/*
* There is nothing to be done. If there is no sampling going on,
* the chip will put itself on power-saving mode (that is because
@ -120,6 +122,8 @@ static void ti_adc108s102_enable(struct device *dev)
static void ti_adc108s102_disable(struct device *dev)
{
ARG_UNUSED(dev);
/* Same issue as with ti_adc108s102_enable() */
}

View file

@ -166,6 +166,8 @@ static inline void dw_interrupt_config(struct device *port, int access_op,
uint32_t base_addr = dw_base_to_block_base(context->base_addr);
uint8_t flag_is_set;
ARG_UNUSED(access_op);
/* set as an input pin */
dw_set_bit(context->base_addr, SWPORTA_DDR, pin, 0);

View file

@ -278,6 +278,8 @@ DEVICE_AND_API_INIT(gpio_k64_A, CONFIG_GPIO_K64_A_DEV_NAME, gpio_k64_A_init,
static int gpio_k64_A_init(struct device *dev)
{
ARG_UNUSED(dev);
IRQ_CONNECT(GPIO_K64_A_IRQ, CONFIG_GPIO_K64_PORTA_PRI,
gpio_k64_port_isr, DEVICE_GET(gpio_k64_A), 0);
@ -307,6 +309,8 @@ DEVICE_AND_API_INIT(gpio_k64_B, CONFIG_GPIO_K64_B_DEV_NAME, gpio_k64_B_init,
static int gpio_k64_B_init(struct device *dev)
{
ARG_UNUSED(dev);
IRQ_CONNECT(GPIO_K64_B_IRQ, CONFIG_GPIO_K64_PORTB_PRI,
gpio_k64_port_isr, DEVICE_GET(gpio_k64_B), 0);
@ -336,6 +340,8 @@ DEVICE_AND_API_INIT(gpio_k64_C, CONFIG_GPIO_K64_C_DEV_NAME, gpio_k64_C_init,
static int gpio_k64_C_init(struct device *dev)
{
ARG_UNUSED(dev);
IRQ_CONNECT(GPIO_K64_C_IRQ, CONFIG_GPIO_K64_PORTC_PRI,
gpio_k64_port_isr, DEVICE_GET(gpio_k64_C), 0);
@ -365,6 +371,8 @@ DEVICE_AND_API_INIT(gpio_k64_D, CONFIG_GPIO_K64_D_DEV_NAME, gpio_k64_D_init,
static int gpio_k64_D_init(struct device *dev)
{
ARG_UNUSED(dev);
IRQ_CONNECT(GPIO_K64_D_IRQ, CONFIG_GPIO_K64_PORTD_PRI,
gpio_k64_port_isr, DEVICE_GET(gpio_k64_D), 0);
@ -394,6 +402,8 @@ DEVICE_AND_API_INIT(gpio_k64_E, CONFIG_GPIO_K64_E_DEV_NAME, gpio_k64_E_init,
static int gpio_k64_E_init(struct device *dev)
{
ARG_UNUSED(dev);
IRQ_CONNECT(GPIO_K64_E_IRQ, CONFIG_GPIO_K64_PORTE_PRI,
gpio_k64_port_isr, DEVICE_GET(gpio_k64_E), 0);

View file

@ -318,6 +318,8 @@ void stm32_exti_unset_callback(int line)
*/
static void __stm32_exti_connect_irqs(struct device *dev)
{
ARG_UNUSED(dev);
#ifdef CONFIG_SOC_SERIES_STM32F1X
IRQ_CONNECT(STM32F1_IRQ_EXTI0,
CONFIG_EXTI_STM32_EXTI0_IRQ_PRI,

View file

@ -125,6 +125,8 @@ static const struct pinmux_driver_api api_funcs = {
static int pinmux_dev_init(struct device *port)
{
ARG_UNUSED(port);
return 0;
}

View file

@ -47,6 +47,8 @@ static const struct pinmux_driver_api api_funcs = {
int pinmux_fsl_k64_initialize(struct device *port)
{
ARG_UNUSED(port);
return 0;
}

View file

@ -79,6 +79,8 @@ static const struct pinmux_driver_api pinmux_stm32_api = {
static int pinmux_stm32_init(struct device *port)
{
ARG_UNUSED(port);
return 0;
}

View file

@ -145,6 +145,8 @@ static void baudrate_set(struct device *dev,
struct uart_sam3_dev_data_t * const dev_data = DEV_DATA(dev);
uint32_t divisor; /* baud rate divisor */
ARG_UNUSED(sys_clk_freq_hz);
if ((baudrate != 0) && (dev_cfg->sys_clk_freq != 0)) {
/* calculate baud rate divisor */
divisor = (dev_cfg->sys_clk_freq / baudrate) >> 4;