Skip to content

Commit

Permalink
sh-pfc: Move sh_pfc.h from include/linux/ to driver directory
Browse files Browse the repository at this point in the history
The header file isn't used by arch code anymore. Make it private to the
driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Jan 25, 2013
1 parent b93911e commit c332380
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 20 deletions.
1 change: 0 additions & 1 deletion drivers/pinctrl/sh-pfc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <linux/module.h>
#include <linux/pinctrl/machine.h>
#include <linux/platform_device.h>
#include <linux/sh_pfc.h>
#include <linux/slab.h>

#include "core.h"
Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
#define __SH_PFC_CORE_H__

#include <linux/compiler.h>
#include <linux/sh_pfc.h>
#include <linux/types.h>

#include "sh_pfc.h"

struct sh_pfc_window {
phys_addr_t phys;
void __iomem *virt;
Expand Down
1 change: 0 additions & 1 deletion drivers/pinctrl/sh-pfc/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/pinctrl/consumer.h>
#include <linux/sh_pfc.h>
#include <linux/slab.h>
#include <linux/spinlock.h>

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-r8a7740.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/r8a7740.h>
#include <mach/irqs.h>

#include "sh_pfc.h"

#define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \
PORT_10(fn, pfx##10, sfx), PORT_90(fn, pfx##1, sfx), \
Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-r8a7779.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
*/

#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/r8a7779.h>

#include "sh_pfc.h"

#define CPU_32_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \
PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \
Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7203.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7203.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7264.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7264.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7269.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7269.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/irqs.h>
#include <mach/sh7372.h>

#include "sh_pfc.h"

#define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \
PORT_10(fn, pfx##10, sfx), PORT_10(fn, pfx##11, sfx), \
Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh73a0.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <mach/sh73a0.h>
#include <mach/irqs.h>

#include "sh_pfc.h"

#define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \
PORT_10(fn, pfx##2, sfx), PORT_10(fn, pfx##3, sfx), \
Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7720.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7720.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7722.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/gpio.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7722.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7723.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7723.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7724.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7724.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7734.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7734.h>

#include "sh_pfc.h"

#define CPU_32_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \
PORT_10(fn, pfx##2, sfx), PORT_1(fn, pfx##30, sfx), \
Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7757.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7757.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7785.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7785.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-sh7786.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/sh7786.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
3 changes: 2 additions & 1 deletion drivers/pinctrl/sh-pfc/pfc-shx3.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sh_pfc.h>
#include <cpu/shx3.h>

#include "sh_pfc.h"

enum {
PINMUX_RESERVED = 0,

Expand Down
1 change: 0 additions & 1 deletion drivers/pinctrl/sh-pfc/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <linux/pinctrl/pinconf-generic.h>
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinmux.h>
#include <linux/sh_pfc.h>
#include <linux/slab.h>
#include <linux/spinlock.h>

Expand Down
File renamed without changes.

0 comments on commit c332380

Please sign in to comment.