From 11bab0e3e08b491c8cfcbb6fc6c206e08cf6aae8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 13 Jul 2018 10:29:02 +0200 Subject: [PATCH] staging: gasket: remove GASKET_SYSFS_REG() 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 Cc: John Joseph Cc: Ben Chan Signed-off-by: Greg Kroah-Hartman --- drivers/staging/gasket/gasket_sysfs.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/staging/gasket/gasket_sysfs.h b/drivers/staging/gasket/gasket_sysfs.h index 40db5a0..0949cda 100644 --- a/drivers/staging/gasket/gasket_sysfs.h +++ b/drivers/staging/gasket/gasket_sysfs.h @@ -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. * -- 2.7.4