Fengguang WuandFelix Fietkau 878b0bd5ea mt76: fix debugfs_simple_attr.cocci warnings
drivers/net/wireless/mediatek/mt76/debugfs.c:36:0-23: WARNING: fops_regval should be defined with DEFINE_DEBUGFS_ATTRIBUTE

 Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
 for debugfs files.

Semantic patch information:
 Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file()
 imposes some significant overhead as compared to
 DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe().

Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci

Fixes: a5f6039c8f9c ("mt76: add driver code for MT76x2e")
CC: Felix Fietkau <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
2018-09-12 13:21:43 +02:00
2015-12-13 17:54:16 +01:00
2018-09-12 13:16:50 +02:00
2016-09-25 18:13:12 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2018-08-22 12:26:35 +02:00
2016-09-04 17:33:28 +02:00
2018-08-22 12:26:35 +02:00
2016-09-04 17:33:28 +02:00
2018-08-24 14:00:05 +02:00
2016-09-04 17:33:28 +02:00
2018-08-22 12:26:35 +02:00
2016-09-04 17:33:28 +02:00
2018-09-11 13:49:19 +02:00
2016-09-04 18:06:48 +02:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%