summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/kernel_ver.h
blob: 40cc2e8af525269525c0bc6af492e6f8539bdb29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * 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 */
OpenPOWER on IntegriCloud