blob: 40cc2e8af525269525c0bc6af492e6f8539bdb29 [file] [log] [blame]
Greg Kroah-Hartmanf91121b2014-09-11 08:22:06 -07001/*
2 * Greybus kernel "version" glue logic.
3 *
4 * Copyright 2014 Google Inc.
5 *
6 * Released under the GPLv2 only.
7 *
8 * Backports of newer kernel apis to allow the code to build properly on older
9 * kernel versions. Remove this file when merging to upstream, it should not be
10 * needed at all
11 */
12
13#ifndef __GREYBUS_KERNEL_VER_H
14#define __GREYBUS_KERNEL_VER_H
15
16#ifndef DEVICE_ATTR_RO
17#define DEVICE_ATTR_RO(_name) \
18 struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
19#endif
20
21
22#endif /* __GREYBUS_KERNEL_VER_H */