powerpc/powernv: Fix checkpatch warnings in opal-xscom.c
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190509051119.7694-4-ajd@linux.ibm.com
This commit is contained in:
parent
bfd2f0d49a
commit
8c98db8d58
|
@ -90,7 +90,7 @@ static ssize_t scom_debug_read(struct file *filp, char __user *ubuf,
|
||||||
struct scom_debug_entry *ent = filp->private_data;
|
struct scom_debug_entry *ent = filp->private_data;
|
||||||
u64 __user *ubuf64 = (u64 __user *)ubuf;
|
u64 __user *ubuf64 = (u64 __user *)ubuf;
|
||||||
loff_t off = *ppos;
|
loff_t off = *ppos;
|
||||||
ssize_t done = 0;
|
ssize_t done = 0;
|
||||||
u64 reg, reg_base, reg_cnt, val;
|
u64 reg, reg_base, reg_cnt, val;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
@ -115,13 +115,13 @@ static ssize_t scom_debug_read(struct file *filp, char __user *ubuf,
|
||||||
return done;
|
return done;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t scom_debug_write(struct file* filp, const char __user *ubuf,
|
static ssize_t scom_debug_write(struct file *filp, const char __user *ubuf,
|
||||||
size_t count, loff_t *ppos)
|
size_t count, loff_t *ppos)
|
||||||
{
|
{
|
||||||
struct scom_debug_entry *ent = filp->private_data;
|
struct scom_debug_entry *ent = filp->private_data;
|
||||||
u64 __user *ubuf64 = (u64 __user *)ubuf;
|
u64 __user *ubuf64 = (u64 __user *)ubuf;
|
||||||
loff_t off = *ppos;
|
loff_t off = *ppos;
|
||||||
ssize_t done = 0;
|
ssize_t done = 0;
|
||||||
u64 reg, reg_base, reg_cnt, val;
|
u64 reg, reg_base, reg_cnt, val;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ static int scom_debug_init_one(struct dentry *root, struct device_node *dn,
|
||||||
|
|
||||||
ent->chip = chip;
|
ent->chip = chip;
|
||||||
snprintf(ent->name, 16, "%08x", chip);
|
snprintf(ent->name, 16, "%08x", chip);
|
||||||
ent->path.data = (void*)kasprintf(GFP_KERNEL, "%pOF", dn);
|
ent->path.data = (void *)kasprintf(GFP_KERNEL, "%pOF", dn);
|
||||||
ent->path.size = strlen((char *)ent->path.data);
|
ent->path.size = strlen((char *)ent->path.data);
|
||||||
|
|
||||||
dir = debugfs_create_dir(ent->name, root);
|
dir = debugfs_create_dir(ent->name, root);
|
||||||
|
|
Loading…
Reference in New Issue