Commit 290a2aba authored by Flavio Santes's avatar Flavio Santes Committed by Anas Nashif
Browse files

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: default avatarFlavio Santes <flavio.santes@intel.com>
parent bcf89dc6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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() */
}

+2 −0
Original line number Diff line number Diff line
@@ -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);

+10 −0
Original line number Diff line number Diff line
@@ -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);

+2 −0
Original line number Diff line number Diff line
@@ -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,
+2 −0
Original line number Diff line number Diff line
@@ -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;
}

Loading