Skip to contentSkip to conversation

staging: most: Fix identifiers to function parameters

PATCH New [email protected] 1 participant 1 message Dec 22, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: most: Fix identifiers to function parameters

From: Ravi Eluri <[email protected]>

fixed "function definition argument should have an identifier name", with appropriate identifier names. Pointed out by checkpatch.

---
Note:
- This is the first patch of the two patch series.
- Patch was compile tested and built(ARCH=arm) on linux-next (latest).
- No build/run-time issues reported.

---
 drivers/staging/most/dim2/dim2.c | 4 ++--
 drivers/staging/most/usb/usb.c   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/most/dim2/dim2.c +2 -2
index 2bd40ab..21e3fb4 100644
@@ -101,8 +101,8 @@ struct dim2_hdm {
 	unsigned char link_state;
 	int atx_idx;
 	struct medialb_bus bus;
-	void (*on_netinfo)(struct most_interface *,
-			   unsigned char, unsigned char *);
+	void (*on_netinfo)(struct most_interface *most_iface,
+			   unsigned char link_state, unsigned char *addrs);
 };
 
 #define iface_to_hdm(iface) container_of(iface, struct dim2_hdm, most_iface)
drivers/staging/most/usb/usb.c +2 -2
index 8d23075..31f184c 100644
@@ -117,8 +117,8 @@ struct most_dev {
 	struct mutex io_mutex;
 	struct timer_list link_stat_timer;
 	struct work_struct poll_work_obj;
-	void (*on_netinfo)(struct most_interface *, unsigned char,
-			   unsigned char *);
+	void (*on_netinfo)(struct most_interface *most_iface,
+			   unsigned char link_state, unsigned char *addrs);
 };
 
 #define to_mdev(d) container_of(d, struct most_dev, iface)
Signature · 1 line
1.9.1