Introduce a helper macro for attributes that have only ->show() defined. P.S. I have few more clean ups locally, thus it would be nice to have an immutable branch for the rest patches which would like to utilize the new macro. In v2: - introduce for all users followed by an example clean up of hci_debugfs.c Andy Shevchenko (2): seq_file: Introduce DEFINE_SHOW_ATTRIBUTE() helper macro Bluetooth: Re-use DEFINE_SHOW_ATTRIBUTE() macro include/linux/seq_file.h | 13 +++ net/bluetooth/hci_debugfs.c | 193 ++++---------------------------------------- 2 files changed, 29 insertions(+), 177 deletions(-) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html