1.1 --- a/pkg/landfall-examples/letux400_backlight/letux400_backlight.cc Sun Jun 11 15:42:11 2023 +0200
1.2 +++ b/pkg/landfall-examples/letux400_backlight/letux400_backlight.cc Sun Jun 18 00:19:36 2023 +0200
1.3 @@ -4,7 +4,7 @@
1.4 * Fn+Down/Up adjusts the brightness.
1.5 * Zzz+Down/Up disables/enables the backlight.
1.6 *
1.7 - * Copyright (C) 2018, 2020 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2018, 2020, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -33,6 +33,8 @@
1.13 #include "activation_client.h"
1.14 #include "backlight_client.h"
1.15
1.16 +
1.17 +
1.18 /* Backlight level. */
1.19
1.20 enum Letux400_backlight_levels
1.21 @@ -114,13 +116,15 @@
1.22 {
1.23 /* Load the keypad library using details from the configured library. */
1.24
1.25 - Keypad *keypad = (Keypad *) load_keypad();
1.26 + Keypad_generic *keypad = (Keypad_generic *) load_keypad();
1.27 Input_keypad_client client(keypad);
1.28
1.29 /* Obtain a reference to the backlight device. */
1.30
1.31 l4_cap_idx_t backlight = l4re_env_get_cap("backlight");
1.32 - if (!l4_is_valid_cap(backlight)) return 1;
1.33 +
1.34 + if (!l4_is_valid_cap(backlight))
1.35 + return 1;
1.36
1.37 /* NOTE: The component framework should permit the use of a compound client
1.38 object. */