Search Linux Wireless

[PATCH] NFC: microread: Platform data header file clean-ups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Several clean-ups related to include/linux/platform_data/microread.h:
* Fix device name in comment.
* Don't include <linux/i2c.h> as it isn't needed.
* Include this header file from drivers/nfc/microread/i2c.c as that
  file uses struct microread_nfc_platform_data.
* Add this header file to the NFC entry in MAINTAINERS.

Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
Cc: Lauro Ramos Venancio <lauro.venancio@xxxxxxxxxxxxx>
Cc: Aloisio Almeida Jr <aloisio.almeida@xxxxxxxxxxxxx>
Cc: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx>
---
That being said, the header file in question only declares struct
microread_nfc_platform_data, which is only used in
drivers/nfc/microread/i2c.c, and that piece of code doesn't access a
single field of the structure. So I am wondering if this struct and
header file are needed at all in the first place?

 MAINTAINERS                             |    1 +
 drivers/nfc/microread/i2c.c             |    1 +
 include/linux/platform_data/microread.h |    4 +---
 3 files changed, 3 insertions(+), 3 deletions(-)

--- linux-3.15-rc2.orig/include/linux/platform_data/microread.h	2014-03-31 05:40:15.000000000 +0200
+++ linux-3.15-rc2/include/linux/platform_data/microread.h	2014-04-22 17:12:06.702561202 +0200
@@ -1,5 +1,5 @@
 /*
- * Driver include for the PN544 NFC chip.
+ * Driver include for the Inside Secure microread NFC chip.
  *
  * Copyright (C) 2011 Tieto Poland
  * Copyright (C) 2012 Intel Corporation. All rights reserved.
@@ -21,8 +21,6 @@
 #ifndef _MICROREAD_H
 #define _MICROREAD_H
 
-#include <linux/i2c.h>
-
 #define MICROREAD_DRIVER_NAME	"microread"
 
 /* board config platform data for microread */
--- linux-3.15-rc2.orig/MAINTAINERS	2014-04-22 14:51:09.025285048 +0200
+++ linux-3.15-rc2/MAINTAINERS	2014-04-22 17:12:33.909132651 +0200
@@ -6204,6 +6204,7 @@ F:	include/net/nfc/
 F:	include/uapi/linux/nfc.h
 F:	drivers/nfc/
 F:	include/linux/platform_data/pn544.h
+F:	include/linux/platform_data/microread.h
 F:	Documentation/devicetree/bindings/net/nfc/
 
 NFS, SUNRPC, AND LOCKD CLIENTS
--- linux-3.15-rc2.orig/drivers/nfc/microread/i2c.c	2014-04-22 16:56:23.385837875 +0200
+++ linux-3.15-rc2/drivers/nfc/microread/i2c.c	2014-04-22 17:14:06.962088154 +0200
@@ -26,6 +26,7 @@
 #include <linux/gpio.h>
 
 #include <linux/nfc.h>
+#include <linux/platform_data/microread.h>
 #include <net/nfc/hci.h>
 #include <net/nfc/llc.h>
 


-- 
Jean Delvare
SUSE L3 Support
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux