From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] spi: pl022: Driver cleanup
Date: Mon, 5 Nov 2018 14:49:26 +0530 [thread overview]
Message-ID: <20181105091926.4971-2-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20181105091926.4971-1-jagan@amarulasolutions.com>
- Drop unnecessary include files.
- Rename platform_data include file as spi_pl022.h from
pl022_spi.h, this is generic notation used for spi platdat
include files.
Cc: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
drivers/spi/pl022_spi.c | 7 +------
include/dm/platform_data/{pl022_spi.h => spi_pl022.h} | 6 +++---
2 files changed, 4 insertions(+), 9 deletions(-)
rename include/dm/platform_data/{pl022_spi.h => spi_pl022.h} (81%)
diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c
index dd27444a43..0ea51f98de 100644
--- a/drivers/spi/pl022_spi.c
+++ b/drivers/spi/pl022_spi.c
@@ -9,16 +9,11 @@
* Driver for ARM PL022 SPI Controller.
*/
-#include <asm/io.h>
#include <clk.h>
#include <common.h>
#include <dm.h>
-#include <dm/platform_data/pl022_spi.h>
-#include <fdtdec.h>
-#include <linux/bitops.h>
-#include <linux/bug.h>
+#include <dm/platform_data/spi_pl022.h>
#include <linux/io.h>
-#include <linux/kernel.h>
#include <spi.h>
#define SSP_CR0 0x000
diff --git a/include/dm/platform_data/pl022_spi.h b/include/dm/platform_data/spi_pl022.h
similarity index 81%
rename from include/dm/platform_data/pl022_spi.h
rename to include/dm/platform_data/spi_pl022.h
index 57d12ac912..36e645c836 100644
--- a/include/dm/platform_data/pl022_spi.h
+++ b/include/dm/platform_data/spi_pl022.h
@@ -7,8 +7,8 @@
* in ofdata_to_platdata.
*/
-#ifndef __PL022_SPI_H__
-#define __PL022_SPI_H__
+#ifndef __spi_pl022_h
+#define __spi_pl022_h
struct pl022_spi_pdata {
fdt_addr_t addr;
@@ -16,4 +16,4 @@ struct pl022_spi_pdata {
unsigned int freq;
};
-#endif
+#endif /* __spi_pl022_h */
--
2.18.0.321.gffc6fa0e3
next prev parent reply other threads:[~2018-11-05 9:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 9:19 [U-Boot] [PATCH 1/2] spi: pl022: Get rid of platdata ifdef's Jagan Teki
2018-11-05 9:19 ` Jagan Teki [this message]
2018-11-05 9:42 ` Quentin Schulz
2018-11-14 9:41 ` Jagan Teki
2018-11-14 10:30 ` Quentin Schulz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181105091926.4971-2-jagan@amarulasolutions.com \
--to=jagan@amarulasolutions.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox