[PATCH 2/4] staging: unisys: uisutils.h and uisutils.c proc code

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

 



Left the functions "uisutil_add_proc_line_ex" in both files alone
because they were declared in the files and not pulled from the
proc header file. However the PROC_READ_BUFFER_SIZE was changed
to READ_BUFFER_SIZE in the files.
PROC_READ_BUFFER_SIZE => READ_BUFFER_SIZE

Signed-off-by: Jeffrey Brown <Jeffrey.Brown@xxxxxxxxxx>
---
 drivers/staging/unisys/include/uisutils.h | 4 ++--
 drivers/staging/unisys/uislib/uislib.c    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/unisys/include/uisutils.h b/drivers/staging/unisys/include/uisutils.h
index 7414220..a202d76 100644
--- a/drivers/staging/unisys/include/uisutils.h
+++ b/drivers/staging/unisys/include/uisutils.h
@@ -108,8 +108,8 @@ dbg_iounmap(void __iomem *addr, char *file, int line)
 	iounmap(addr);
 }
 
-#define PROC_READ_BUFFER_SIZE 131072	/* size of the buffer to allocate to
-					 * hold all of /proc/XXX/info */
+#define DEBUGFS_READ_BUFFER_SIZE 131072	/* size of the buffer to allocate to
+				 * hold all of /proc/XXX/info */
 int uisutil_add_proc_line_ex(int *total, char **buffer, int *buffer_remaining,
 			     char *format, ...);
 
diff --git a/drivers/staging/unisys/uislib/uislib.c b/drivers/staging/unisys/uislib/uislib.c
index 7c87452..5785eb3 100644
--- a/drivers/staging/unisys/uislib/uislib.c
+++ b/drivers/staging/unisys/uislib/uislib.c
@@ -1186,12 +1186,12 @@ info_debugfs_read(struct file *file, char __user *buf,
 {
 	char *temp;
 	int totalBytes = 0;
-	int remaining_bytes = PROC_READ_BUFFER_SIZE;
+	int remaining_bytes = DEBUGFS_READ_BUFFER_SIZE;
 
 /* *start = buf; */
 	if (ProcReadBuffer == NULL) {
 		DBGINF("ProcReadBuffer == NULL; allocating buffer.\n.");
-		ProcReadBuffer = vmalloc(PROC_READ_BUFFER_SIZE);
+		ProcReadBuffer = vmalloc(DEBUGFS_READ_BUFFER_SIZE);
 
 		if (ProcReadBuffer == NULL) {
 			LOGERR("failed to allocate buffer to provide proc data.\n");
-- 
1.9.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux