projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0ee629
)
Input: map_to_7segment.h - convert to __inline__ for userspace
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 29 Dec 2008 12:00:23 +0000
(
04:00
-0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 29 Dec 2008 12:59:31 +0000
(
04:59
-0800)
Use __inline__ rather than inline for map_to_seg7() since it is exported
to userspace.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/map_to_7segment.h
patch
|
blob
|
history
diff --git
a/include/linux/map_to_7segment.h
b/include/linux/map_to_7segment.h
index 7df8432c4402b576b9f1d5b116aea47a6182daef..12d62a54d47029383b79bdc3ed9b529fe21f6b90 100644
(file)
--- a/
include/linux/map_to_7segment.h
+++ b/
include/linux/map_to_7segment.h
@@
-75,7
+75,7
@@
struct seg7_conversion_map {
unsigned char table[128];
};
-static
inline
int map_to_seg7(struct seg7_conversion_map *map, int c)
+static
__inline__
int map_to_seg7(struct seg7_conversion_map *map, int c)
{
return c >= 0 && c < sizeof(map->table) ? map->table[c] : -EINVAL;
}