Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754645AbbHJOpB (ORCPT ); Mon, 10 Aug 2015 10:45:01 -0400 Received: from down.free-electrons.com ([37.187.137.238]:37567 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752341AbbHJOo6 (ORCPT ); Mon, 10 Aug 2015 10:44:58 -0400 From: Alexandre Belloni To: Wolfgang Grandegger , Marc Kleine-Budde Cc: Nicolas Ferre , linux-can@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH] can: at91: move at91_can_data to at91_can.c Date: Mon, 10 Aug 2015 16:44:54 +0200 Message-Id: <1439217894-15230-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1703 Lines: 56 struct at91_can_data is now only used inside the driver, move it to its c file. Signed-off-by: Alexandre Belloni --- drivers/net/can/at91_can.c | 5 ++++- include/linux/platform_data/atmel.h | 5 ----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 945c0955a967..83ddf4f46f0d 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include @@ -136,6 +135,10 @@ struct at91_devtype_data { enum at91_devtype type; }; +struct at91_can_data { + void (*transceiver_switch)(int on); +}; + struct at91_priv { struct can_priv can; /* must be the first member! */ struct napi_struct napi; diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h index 4b452c6a2f7b..b99d85f56a7d 100644 --- a/include/linux/platform_data/atmel.h +++ b/include/linux/platform_data/atmel.h @@ -86,11 +86,6 @@ struct atmel_uart_data { struct serial_rs485 rs485; /* rs485 settings */ }; -/* CAN */ -struct at91_can_data { - void (*transceiver_switch)(int on); -}; - /* FIXME: this needs a better location, but gets stuff building again */ extern int at91_suspend_entering_slow_clock(void); -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/