linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* trigger named just "tx" in drivers/net/wireless/atmel/at76c50x-usb.c
@ 2018-12-01 14:31 Pavel Machek
  2018-12-03  8:45 ` Kalle Valo
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2018-12-01 14:31 UTC (permalink / raw)
  To: jacek.anaszewski, linux-leds
  Cc: kernel list, kvalo, davem, linux-wireless, netdev

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

Hi!

While grepping something else, I came across LED trigger that is named
just "tx".

That's a bit too generic afaict?

+++ b/drivers/net/wireless/atmel/at76c50x-usb.c
@@ -520,7 +520,7 @@ static int at76_usbdfu_download(struct usb_device
*udev, u8 *buf, u32 size,
 static int tx_activity;
  static void at76_ledtrig_tx_timerfunc(struct timer_list *unused);
   static DEFINE_TIMER(ledtrig_tx_timer, at76_ledtrig_tx_timerfunc);
   -DEFINE_LED_TRIGGER(ledtrig_tx);
   +DEFINE_LED_TRIGGER(ledtrig_tx); /* Hey! "tx" is a bit too generic
   name for a trigger! */


									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trigger named just "tx" in drivers/net/wireless/atmel/at76c50x-usb.c
  2018-12-01 14:31 trigger named just "tx" in drivers/net/wireless/atmel/at76c50x-usb.c Pavel Machek
@ 2018-12-03  8:45 ` Kalle Valo
  2018-12-09 20:08   ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Kalle Valo @ 2018-12-03  8:45 UTC (permalink / raw)
  To: Pavel Machek
  Cc: jacek.anaszewski, linux-leds, kernel list, davem, linux-wireless, netdev

Pavel Machek <pavel@ucw.cz> writes:

> While grepping something else, I came across LED trigger that is named
> just "tx".
>
> That's a bit too generic afaict?
>
> +++ b/drivers/net/wireless/atmel/at76c50x-usb.c
> @@ -520,7 +520,7 @@ static int at76_usbdfu_download(struct usb_device
> *udev, u8 *buf, u32 size,
>  static int tx_activity;
>   static void at76_ledtrig_tx_timerfunc(struct timer_list *unused);
>    static DEFINE_TIMER(ledtrig_tx_timer, at76_ledtrig_tx_timerfunc);
>    -DEFINE_LED_TRIGGER(ledtrig_tx);
>    +DEFINE_LED_TRIGGER(ledtrig_tx); /* Hey! "tx" is a bit too generic
>    name for a trigger! */

This is an ancient driver, my guess is that nobody uses it anymore. I
should orphan it and maybe even remove it at some point.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trigger named just "tx" in drivers/net/wireless/atmel/at76c50x-usb.c
  2018-12-03  8:45 ` Kalle Valo
@ 2018-12-09 20:08   ` Pavel Machek
  2018-12-10 17:30     ` Kalle Valo
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2018-12-09 20:08 UTC (permalink / raw)
  To: Kalle Valo
  Cc: jacek.anaszewski, linux-leds, kernel list, davem, linux-wireless, netdev

[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]

On Mon 2018-12-03 10:45:01, Kalle Valo wrote:
> Pavel Machek <pavel@ucw.cz> writes:
> 
> > While grepping something else, I came across LED trigger that is named
> > just "tx".
> >
> > That's a bit too generic afaict?
> >
> > +++ b/drivers/net/wireless/atmel/at76c50x-usb.c
> > @@ -520,7 +520,7 @@ static int at76_usbdfu_download(struct usb_device
> > *udev, u8 *buf, u32 size,
> >  static int tx_activity;
> >   static void at76_ledtrig_tx_timerfunc(struct timer_list *unused);
> >    static DEFINE_TIMER(ledtrig_tx_timer, at76_ledtrig_tx_timerfunc);
> >    -DEFINE_LED_TRIGGER(ledtrig_tx);
> >    +DEFINE_LED_TRIGGER(ledtrig_tx); /* Hey! "tx" is a bit too generic
> >    name for a trigger! */
> 
> This is an ancient driver, my guess is that nobody uses it anymore. I
> should orphan it and maybe even remove it at some point.

Are you willing to add a fixme there? I really don't want people to
copy that example.
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trigger named just "tx" in drivers/net/wireless/atmel/at76c50x-usb.c
  2018-12-09 20:08   ` Pavel Machek
@ 2018-12-10 17:30     ` Kalle Valo
  0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2018-12-10 17:30 UTC (permalink / raw)
  To: Pavel Machek
  Cc: jacek.anaszewski, linux-leds, kernel list, davem, linux-wireless, netdev

Pavel Machek <pavel@ucw.cz> writes:

> On Mon 2018-12-03 10:45:01, Kalle Valo wrote:
>> Pavel Machek <pavel@ucw.cz> writes:
>> 
>> > While grepping something else, I came across LED trigger that is named
>> > just "tx".
>> >
>> > That's a bit too generic afaict?
>> >
>> > +++ b/drivers/net/wireless/atmel/at76c50x-usb.c
>> > @@ -520,7 +520,7 @@ static int at76_usbdfu_download(struct usb_device
>> > *udev, u8 *buf, u32 size,
>> >  static int tx_activity;
>> >   static void at76_ledtrig_tx_timerfunc(struct timer_list *unused);
>> >    static DEFINE_TIMER(ledtrig_tx_timer, at76_ledtrig_tx_timerfunc);
>> >    -DEFINE_LED_TRIGGER(ledtrig_tx);
>> >    +DEFINE_LED_TRIGGER(ledtrig_tx); /* Hey! "tx" is a bit too generic
>> >    name for a trigger! */
>> 
>> This is an ancient driver, my guess is that nobody uses it anymore. I
>> should orphan it and maybe even remove it at some point.
>
> Are you willing to add a fixme there? I really don't want people to
> copy that example.

Sure, patches welcome.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-10 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-01 14:31 trigger named just "tx" in drivers/net/wireless/atmel/at76c50x-usb.c Pavel Machek
2018-12-03  8:45 ` Kalle Valo
2018-12-09 20:08   ` Pavel Machek
2018-12-10 17:30     ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).