Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34a4c5eb authored by Mike Frysinger's avatar Mike Frysinger Committed by Dmitry Torokhov
Browse files

Input: map_to_7segment.h - convert to __inline__ for userspace



Use __inline__ rather than inline for map_to_seg7() since it is exported
to userspace.

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e0ee6298
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}