/* | |
* Greybus kernel "version" glue logic. | |
* | |
* Copyright 2014 Google Inc. | |
* | |
* Released under the GPLv2 only. | |
* | |
* Backports of newer kernel apis to allow the code to build properly on older | |
* kernel versions. Remove this file when merging to upstream, it should not be | |
* needed at all | |
*/ | |
#ifndef __GREYBUS_KERNEL_VER_H | |
#define __GREYBUS_KERNEL_VER_H | |
#ifndef DEVICE_ATTR_RO | |
#define DEVICE_ATTR_RO(_name) \ | |
struct device_attribute dev_attr_##_name = __ATTR_RO(_name) | |
#endif | |
#endif /* __GREYBUS_KERNEL_VER_H */ |