Skip to content

Commit

Permalink
Input: map_to_7segment.h - convert to __inline__ for userspace
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger authored and Dmitry Torokhov committed Dec 29, 2008
1 parent e0ee629 commit 34a4c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/map_to_7segment.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 34a4c5e

Please sign in to comment.