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>
This commit is contained in:
Edward O'Callaghan 2014-10-31 08:31:44 +11:00
parent 76b46e093a
commit 530355d41b
1 changed files with 6 additions and 0 deletions

View File

@ -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__ */