mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-26 21:30:13 +01:00
tablet: fix two coding style issues
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Reviewed-by: Stephen Chandler Paul <thatslyude@gmail.com>
This commit is contained in:
parent
3288349077
commit
d0805e41d2
1 changed files with 4 additions and 2 deletions
|
|
@ -119,7 +119,8 @@ tablet_update_tool(struct tablet_dispatch *tablet,
|
|||
}
|
||||
|
||||
static inline double
|
||||
normalize_pressure_or_dist(const struct input_absinfo * absinfo) {
|
||||
normalize_pressure_or_dist(const struct input_absinfo *absinfo)
|
||||
{
|
||||
double range = absinfo->maximum - absinfo->minimum;
|
||||
double value = (absinfo->value - absinfo->minimum) / range;
|
||||
|
||||
|
|
@ -127,7 +128,8 @@ normalize_pressure_or_dist(const struct input_absinfo * absinfo) {
|
|||
}
|
||||
|
||||
static inline double
|
||||
normalize_tilt(const struct input_absinfo * absinfo) {
|
||||
normalize_tilt(const struct input_absinfo *absinfo)
|
||||
{
|
||||
double range = absinfo->maximum - absinfo->minimum;
|
||||
double value = (absinfo->value - absinfo->minimum) / range;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue