staging: unisys: fix CamelCase local toolAction
Rename the CamelCase local toolAction => tool_action In both of the sysfs functions for exposing this value, and update all references to use the corrected name. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>hifive-unleashed-5.1
parent
77a0449d4c
commit
01f4d85a58
|
@ -346,27 +346,27 @@ static ssize_t toolaction_show(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
char *buf)
|
char *buf)
|
||||||
{
|
{
|
||||||
u8 toolAction;
|
u8 tool_action;
|
||||||
|
|
||||||
visorchannel_read(controlvm_channel,
|
visorchannel_read(controlvm_channel,
|
||||||
offsetof(struct spar_controlvm_channel_protocol,
|
offsetof(struct spar_controlvm_channel_protocol,
|
||||||
tool_action), &toolAction, sizeof(u8));
|
tool_action), &tool_action, sizeof(u8));
|
||||||
return scnprintf(buf, PAGE_SIZE, "%u\n", toolAction);
|
return scnprintf(buf, PAGE_SIZE, "%u\n", tool_action);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t toolaction_store(struct device *dev,
|
static ssize_t toolaction_store(struct device *dev,
|
||||||
struct device_attribute *attr,
|
struct device_attribute *attr,
|
||||||
const char *buf, size_t count)
|
const char *buf, size_t count)
|
||||||
{
|
{
|
||||||
u8 toolAction;
|
u8 tool_action;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (kstrtou8(buf, 10, &toolAction) != 0)
|
if (kstrtou8(buf, 10, &tool_action) != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
ret = visorchannel_write(controlvm_channel,
|
ret = visorchannel_write(controlvm_channel,
|
||||||
offsetof(struct spar_controlvm_channel_protocol, tool_action),
|
offsetof(struct spar_controlvm_channel_protocol, tool_action),
|
||||||
&toolAction, sizeof(u8));
|
&tool_action, sizeof(u8));
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue