From 530355d41bf10fa4f0ee215e0e71fc68e80053ea Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Fri, 31 Oct 2014 08:31:44 +1100 Subject: 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 Reviewed-on: http://review.coreboot.org/7283 Tested-by: build bot (Jenkins) Reviewed-by: Bruce Griffith --- src/include/device/device.h | 6 ++++++ 1 file changed, 6 insertions(+) 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__ */ -- cgit v1.2.3