mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
staging: most: usb: fix show/store function names
This patch renames the show/store functions of the USB module. It is needed to make the module meet the established naming convention. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b7ed2ff0bb
commit
3d9c54b5f9
1 changed files with 17 additions and 17 deletions
|
@ -887,7 +887,7 @@ static int get_stat_reg_addr(const struct regs *regs, int size,
|
|||
#define get_static_reg_addr(regs, name, reg_addr) \
|
||||
get_stat_reg_addr(regs, ARRAY_SIZE(regs), name, reg_addr)
|
||||
|
||||
static ssize_t show_value(struct device *dev, struct device_attribute *attr,
|
||||
static ssize_t value_show(struct device *dev, struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
const char *name = attr->attr.name;
|
||||
|
@ -912,7 +912,7 @@ static ssize_t show_value(struct device *dev, struct device_attribute *attr,
|
|||
return snprintf(buf, PAGE_SIZE, "%04x\n", val);
|
||||
}
|
||||
|
||||
static ssize_t store_value(struct device *dev, struct device_attribute *attr,
|
||||
static ssize_t value_store(struct device *dev, struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
u16 val;
|
||||
|
@ -945,21 +945,21 @@ static ssize_t store_value(struct device *dev, struct device_attribute *attr,
|
|||
return count;
|
||||
}
|
||||
|
||||
DEVICE_ATTR(ni_state, 0444, show_value, NULL);
|
||||
DEVICE_ATTR(packet_bandwidth, 0444, show_value, NULL);
|
||||
DEVICE_ATTR(node_address, 0444, show_value, NULL);
|
||||
DEVICE_ATTR(node_position, 0444, show_value, NULL);
|
||||
DEVICE_ATTR(sync_ep, 0200, NULL, store_value);
|
||||
DEVICE_ATTR(mep_filter, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(mep_hash0, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(mep_hash1, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(mep_hash2, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(mep_hash3, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(mep_eui48_hi, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(mep_eui48_mi, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(mep_eui48_lo, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(arb_address, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(arb_value, 0644, show_value, store_value);
|
||||
DEVICE_ATTR(ni_state, 0444, value_show, NULL);
|
||||
DEVICE_ATTR(packet_bandwidth, 0444, value_show, NULL);
|
||||
DEVICE_ATTR(node_address, 0444, value_show, NULL);
|
||||
DEVICE_ATTR(node_position, 0444, value_show, NULL);
|
||||
DEVICE_ATTR(sync_ep, 0200, NULL, value_store);
|
||||
DEVICE_ATTR(mep_filter, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(mep_hash0, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(mep_hash1, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(mep_hash2, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(mep_hash3, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(mep_eui48_hi, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(mep_eui48_mi, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(mep_eui48_lo, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(arb_address, 0644, value_show, value_store);
|
||||
DEVICE_ATTR(arb_value, 0644, value_show, value_store);
|
||||
|
||||
static struct attribute *dci_attrs[] = {
|
||||
&dev_attr_ni_state.attr,
|
||||
|
|
Loading…
Reference in a new issue