Commit 3544d3f7 authored by Vandana BN's avatar Vandana BN Committed by Greg Kroah-Hartman

Staging: kpc2000: kpc_dma: Resolve checkpath errors Macros in paranthesis &...

Staging: kpc2000: kpc_dma: Resolve checkpath errors Macros in paranthesis & trailing statements on next line.

This patch fixes below errors reported by checkpath
ERROR: Macros with complex values should be enclosed in parentheses
CHECK: Prefer using the BIT macro
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line
Signed-off-by: default avatarVandana BN <bnvandana@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f42485c5
...@@ -14,7 +14,7 @@ MODULE_LICENSE("GPL"); ...@@ -14,7 +14,7 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Matt.Sickler@daktronics.com"); MODULE_AUTHOR("Matt.Sickler@daktronics.com");
#define KPC_DMA_CHAR_MAJOR UNNAMED_MAJOR #define KPC_DMA_CHAR_MAJOR UNNAMED_MAJOR
#define KPC_DMA_NUM_MINORS 1 << MINORBITS #define KPC_DMA_NUM_MINORS BIT(MINORBITS)
static DEFINE_MUTEX(kpc_dma_mtx); static DEFINE_MUTEX(kpc_dma_mtx);
static int assigned_major_num; static int assigned_major_num;
static LIST_HEAD(kpc_dma_list); static LIST_HEAD(kpc_dma_list);
...@@ -55,9 +55,11 @@ static ssize_t show_engine_regs(struct device *dev, struct device_attribute *at ...@@ -55,9 +55,11 @@ static ssize_t show_engine_regs(struct device *dev, struct device_attribute *at
{ {
struct kpc_dma_device *ldev; struct kpc_dma_device *ldev;
struct platform_device *pldev = to_platform_device(dev); struct platform_device *pldev = to_platform_device(dev);
if (!pldev) return 0; if (!pldev)
return 0;
ldev = platform_get_drvdata(pldev); ldev = platform_get_drvdata(pldev);
if (!ldev) return 0; if (!ldev)
return 0;
return scnprintf(buf, PAGE_SIZE, return scnprintf(buf, PAGE_SIZE,
"EngineControlStatus = 0x%08x\n" "EngineControlStatus = 0x%08x\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment