treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / wireless / ralink / rt2x00 / rt2x00leds.h
blob826058d419ac5e7ed548718d07b2cc93e156be2a
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com>
4 <http://rt2x00.serialmonkey.com>
6 */
8 /*
9 Module: rt2x00lib
10 Abstract: rt2x00 led datastructures and routines
13 #ifndef RT2X00LEDS_H
14 #define RT2X00LEDS_H
16 enum led_type {
17 LED_TYPE_RADIO,
18 LED_TYPE_ASSOC,
19 LED_TYPE_ACTIVITY,
20 LED_TYPE_QUALITY,
23 struct rt2x00_led {
24 struct rt2x00_dev *rt2x00dev;
25 struct led_classdev led_dev;
27 enum led_type type;
28 unsigned int flags;
29 #define LED_INITIALIZED ( 1 << 0 )
30 #define LED_REGISTERED ( 1 << 1 )
33 #endif /* RT2X00LEDS_H */