mbox series

[v2,0/2] seq_file, Bluetooth: introduce DEFINE_SHOW_ATTRIBUTE()

Message ID 20171123203605.44954-1-andriy.shevchenko@linux.intel.com
Headers show
Series seq_file, Bluetooth: introduce DEFINE_SHOW_ATTRIBUTE() | expand

Message

Andy Shevchenko Nov. 23, 2017, 8:36 p.m. UTC
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(-)