aboutsummaryrefslogtreecommitdiff
path: root/src/include/device/device.h
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-10-31 08:31:44 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-01 21:13:41 +0100
commit530355d41bf10fa4f0ee215e0e71fc68e80053ea (patch)
treeed8386ee101ccd7c981594b59ff5a7dadcec5e42 /src/include/device/device.h
parent76b46e093a17ac246d2c10267e42a4109a84832f (diff)
include/device/device.h: Provide DEVICE_NOOP macro shim
Rather than everyone writing their own adhoc device operation NOP shim, we provide some formalism. We later make use of this to reduce the loc count down trivially. Change-Id: I2d04bfb50e76f367a0ee258dab97d7caa12ec99e Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7283 Tested-by: build bot (Jenkins) Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Diffstat (limited to 'src/include/device/device.h')
-rw-r--r--src/include/device/device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 3810716057..c67205cae7 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -66,6 +66,12 @@ struct device_operations {
const struct pnp_mode_ops *ops_pnp_mode;
};
+/**
+ * Standard device operations function pointers shims.
+ */
+static inline void device_noop(struct device *dev) {}
+#define DEVICE_NOOP device_noop
+
#endif /* ! __SIMPLE_DEVICE__ */