[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1294272313-15899-8-git-send-email-russ.gorby@intel.com>
Date: Wed, 5 Jan 2011 16:05:13 -0800
From: Russ Gorby <russ.gorby@...el.com>
To: Greg@...r.kernel.org, Kroah-Hartman@...r.kernel.org,
<gregkh@...e.de>, Vasiliy@...r.kernel.org, Kulikov@...r.kernel.org,
<segoon@...nwall.com>, Alan@...r.kernel.org, Cox@...r.kernel.org,
<alan@...ux.intel.com>, Russ@...r.kernel.org,
Gorby@...r.kernel.org, <richardx.r.gorby@...el.com>,
linux-kernel@...r.kernel.org
Cc: suhail.ahmed@...el.com
Subject: [PATCH 7/7] serial: ifx6x60: minor cleanup
renamed spi_driver variable to not be h/w specific
set driver name to use DRVNAME define
removed commented-out define
Signed-off-by: Russ Gorby <russ.gorby@...el.com>
---
drivers/serial/ifx6x60.c | 8 ++++----
drivers/serial/ifx6x60.h | 2 --
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/serial/ifx6x60.c b/drivers/serial/ifx6x60.c
index 5a0321a..e296f97 100644
--- a/drivers/serial/ifx6x60.c
+++ b/drivers/serial/ifx6x60.c
@@ -1342,9 +1342,9 @@ static const struct spi_device_id ifx_id_table[] = {
MODULE_DEVICE_TABLE(spi, ifx_id_table);
/* spi operations */
-static const struct spi_driver ifx_spi_driver_6160 = {
+static const struct spi_driver ifx_spi_driver = {
.driver = {
- .name = "ifx6160",
+ .name = DRVNAME,
.bus = &spi_bus_type,
.pm = &ifx_spi_pm,
.owner = THIS_MODULE},
@@ -1366,7 +1366,7 @@ static void __exit ifx_spi_exit(void)
{
/* unregister */
tty_unregister_driver(tty_drv);
- spi_unregister_driver((void *)&ifx_spi_driver_6160);
+ spi_unregister_driver((void *)&ifx_spi_driver);
}
/**
@@ -1408,7 +1408,7 @@ static int __init ifx_spi_init(void)
return result;
}
- result = spi_register_driver((void *)&ifx_spi_driver_6160);
+ result = spi_register_driver((void *)&ifx_spi_driver);
if (result) {
pr_err("%s: spi_register_driver failed(%d)",
DRVNAME, result);
diff --git a/drivers/serial/ifx6x60.h b/drivers/serial/ifx6x60.h
index deb7b8d..5952c40 100644
--- a/drivers/serial/ifx6x60.h
+++ b/drivers/serial/ifx6x60.h
@@ -29,8 +29,6 @@
#define DRVNAME "ifx6x60"
#define TTYNAME "ttyIFX"
-/* #define IFX_THROTTLE_CODE */
-
#define IFX_SPI_MAX_MINORS 1
#define IFX_SPI_TRANSFER_SIZE 2048
#define IFX_SPI_FIFO_SIZE 4096
--
1.7.2.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists