[PATCH 1/6] staging:android_pmem.h: Fixes the space and other formating issues pointed out by checkpatch.pl
Pradheep
pradheep.sh at gmail.com
Wed Jan 18 03:19:19 UTC 2012
This patch fixes the formating and other trival formatting issues pointed out by checkpatch.pl
Signed-off-by:pradheep.shrinivasan at gmail.com
---
drivers/staging/android/android_pmem.h | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/android/android_pmem.h b/drivers/staging/android/android_pmem.h
index f633621..5dd332f 100644
--- a/drivers/staging/android/android_pmem.h
+++ b/drivers/staging/android/android_pmem.h
@@ -7,7 +7,7 @@
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
@@ -16,7 +16,7 @@
#ifndef _ANDROID_PMEM_H_
#define _ANDROID_PMEM_H_
-#define PMEM_IOCTL_MAGIC 'p'
+#define PMEM_IOCTL_MAGIC ('p')
#define PMEM_GET_PHYS _IOW(PMEM_IOCTL_MAGIC, 1, unsigned int)
#define PMEM_MAP _IOW(PMEM_IOCTL_MAGIC, 2, unsigned int)
#define PMEM_GET_SIZE _IOW(PMEM_IOCTL_MAGIC, 3, unsigned int)
@@ -30,14 +30,13 @@
*/
#define PMEM_CONNECT _IOW(PMEM_IOCTL_MAGIC, 6, unsigned int)
/* Returns the total size of the pmem region it is sent to as a pmem_region
- * struct (with offset set to 0).
+ * struct (with offset set to 0).
*/
#define PMEM_GET_TOTAL_SIZE _IOW(PMEM_IOCTL_MAGIC, 7, unsigned int)
#define PMEM_CACHE_FLUSH _IOW(PMEM_IOCTL_MAGIC, 8, unsigned int)
-struct android_pmem_platform_data
-{
- const char* name;
+struct android_pmem_platform_data {
+ const char *name;
/* starting physical address of memory region */
unsigned long start;
/* size of memory region */
@@ -63,7 +62,7 @@ int get_pmem_file(int fd, unsigned long *start, unsigned long *vstart,
unsigned long *end, struct file **filp);
int get_pmem_user_addr(struct file *file, unsigned long *start,
unsigned long *end);
-void put_pmem_file(struct file* file);
+void put_pmem_file(struct file *file);
void flush_pmem_file(struct file *file, unsigned long start, unsigned long len);
int pmem_setup(struct android_pmem_platform_data *pdata,
long (*ioctl)(struct file *, unsigned int, unsigned long),
@@ -78,7 +77,7 @@ static inline int get_pmem_file(int fd, unsigned long *start,
struct file **filp) { return -ENOSYS; }
static inline int get_pmem_user_addr(struct file *file, unsigned long *start,
unsigned long *end) { return -ENOSYS; }
-static inline void put_pmem_file(struct file* file) { return; }
+static inline void put_pmem_file(struct file *file) { return; }
static inline void flush_pmem_file(struct file *file, unsigned long start,
unsigned long len) { return; }
static inline int pmem_setup(struct android_pmem_platform_data *pdata,
@@ -89,5 +88,5 @@ static inline int pmem_remap(struct pmem_region *region, struct file *file,
unsigned operation) { return -ENOSYS; }
#endif
-#endif //_ANDROID_PPP_H_
+#endif /* _ANDROID_PPP_H_ */
--
1.7.1
More information about the devel
mailing list