Skip to content

Commit

Permalink
staging: gasket: remove GASKET_SYSFS_REG()
Browse files Browse the repository at this point in the history
In an attempt to start to clean up the monstrosity of the sysfs abuse in
the gasket driver, let's remove code that is not used at all.  The
GASKET_SYSFS_REG() macro is never used, so delete it.

Cc: Rob Springer <[email protected]>
Cc: John Joseph <[email protected]>
Cc: Ben Chan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Jul 14, 2018
1 parent af3abc4 commit 11bab0e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/staging/gasket/gasket_sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,6 @@ struct gasket_sysfs_attribute {
.attr = __ATTR(_name, S_IRUGO, _show_function, NULL), \
.data.attr_type = _attr_type \
}
#define GASKET_SYSFS_REG(_name, _offset, _bar) \
{ \
.attr = __ATTR(_name, S_IRUGO, gasket_sysfs_register_show, \
NULL), \
.data.bar_address = { \
.bar = _bar, \
.offset = _offset \
} \
}

/* Initializes the Gasket sysfs subsystem.
*
Expand Down

0 comments on commit 11bab0e

Please sign in to comment.