Commit 1446ff09 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: fix line-over-80-characters violations

This patch prevents code from crossing the 80 character margin.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b2db4b24
...@@ -349,7 +349,8 @@ static int aim_probe_channel(struct most_interface *iface, int channel_idx, ...@@ -349,7 +349,8 @@ static int aim_probe_channel(struct most_interface *iface, int channel_idx,
if (nd->tx.linked || nd->rx.linked) { if (nd->tx.linked || nd->rx.linked) {
struct net_device *dev = struct net_device *dev =
alloc_netdev(0, "meth%d", NET_NAME_UNKNOWN, most_nd_setup); alloc_netdev(0, "meth%d", NET_NAME_UNKNOWN,
most_nd_setup);
if (!dev) { if (!dev) {
pr_err("no memory for net_device\n"); pr_err("no memory for net_device\n");
......
...@@ -18,7 +18,8 @@ struct device; ...@@ -18,7 +18,8 @@ struct device;
/* platform dependent data for dim2 interface */ /* platform dependent data for dim2 interface */
struct dim2_platform_data { struct dim2_platform_data {
int (*init)(struct dim2_platform_data *pd, void *io_base, int clk_speed); int (*init)(struct dim2_platform_data *pd, void *io_base,
int clk_speed);
void (*destroy)(struct dim2_platform_data *pd); void (*destroy)(struct dim2_platform_data *pd);
void *priv; void *priv;
}; };
......
...@@ -988,7 +988,8 @@ static ssize_t store_add_link(struct most_aim_obj *aim_obj, ...@@ -988,7 +988,8 @@ static ssize_t store_add_link(struct most_aim_obj *aim_obj,
return ret; return ret;
if (!mdev_devnod || *mdev_devnod == 0) { if (!mdev_devnod || *mdev_devnod == 0) {
snprintf(devnod_buf, sizeof(devnod_buf), "%s-%s", mdev, mdev_ch); snprintf(devnod_buf, sizeof(devnod_buf), "%s-%s", mdev,
mdev_ch);
mdev_devnod = devnod_buf; mdev_devnod = devnod_buf;
} }
...@@ -1063,7 +1064,8 @@ static ssize_t store_remove_link(struct most_aim_obj *aim_obj, ...@@ -1063,7 +1064,8 @@ static ssize_t store_remove_link(struct most_aim_obj *aim_obj,
} }
static struct most_aim_attribute most_aim_attr_remove_link = static struct most_aim_attribute most_aim_attr_remove_link =
__ATTR(remove_link, S_IRUGO | S_IWUSR, show_remove_link, store_remove_link); __ATTR(remove_link, S_IRUGO | S_IWUSR, show_remove_link,
store_remove_link);
static struct attribute *most_aim_def_attrs[] = { static struct attribute *most_aim_def_attrs[] = {
&most_aim_attr_add_link.attr, &most_aim_attr_add_link.attr,
......
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