aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/visualizer/visualizer_keyframes.c
blob: 8f6a7e15a45ff96ad9e37891664a937239945c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Copyright 2017 Fred Sundvik
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "visualizer_keyframes.h"

bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state) {
    (void)animation;
    (void)state;
    return false;
}
2016 15:13:33 -0700 Subject: [PATCH] drm: Emit modalias uevents for the DSI devices we create. This gets the Raspberry Pi panel module to automatically load at boot time. Signed-off-by: Eric Anholt <eric@anholt.net> --- drivers/gpu/drm/drm_mipi_dsi.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -50,6 +50,24 @@ static int mipi_dsi_device_match(struct return of_driver_match_device(dev, drv); } +/** + * Send modalias events when devices are created on the bus, so that + * modules can load automatically. + */ +static int mipi_dsi_uevent(struct device *dev, struct kobj_uevent_env *env) +{ + int rc; + + /* Just do the OF uevent, which emits the compatible string so + * that a MODULE_DEVICE_TABLE(of, ...) works. + */ + rc = of_device_uevent_modalias(dev, env); + if (rc != -ENODEV) + return rc; + + return 0; +} + static const struct dev_pm_ops mipi_dsi_device_pm_ops = { .runtime_suspend = pm_generic_runtime_suspend, .runtime_resume = pm_generic_runtime_resume, @@ -65,6 +83,7 @@ static struct bus_type mipi_dsi_bus_type .name = "mipi-dsi", .match = mipi_dsi_device_match, .pm = &mipi_dsi_device_pm_ops, + .uevent = mipi_dsi_uevent, }; static int of_device_match(struct device *dev, void *data)