xref: /netbsd-src/sys/external/bsd/drm2/linux/linux_backlight.c (revision 57dc7cfb048e34c750109ec827e2029e52a93788)
1*57dc7cfbSriastradh /*	$NetBSD: linux_backlight.c,v 1.1 2021/12/19 10:46:55 riastradh Exp $	*/
2*57dc7cfbSriastradh 
3*57dc7cfbSriastradh /*-
4*57dc7cfbSriastradh  * Copyright (c) 2020 The NetBSD Foundation, Inc.
5*57dc7cfbSriastradh  * All rights reserved.
6*57dc7cfbSriastradh  *
7*57dc7cfbSriastradh  * This code is derived from software contributed to The NetBSD Foundation
8*57dc7cfbSriastradh  * by Taylor R. Campbell.
9*57dc7cfbSriastradh  *
10*57dc7cfbSriastradh  * Redistribution and use in source and binary forms, with or without
11*57dc7cfbSriastradh  * modification, are permitted provided that the following conditions
12*57dc7cfbSriastradh  * are met:
13*57dc7cfbSriastradh  * 1. Redistributions of source code must retain the above copyright
14*57dc7cfbSriastradh  *    notice, this list of conditions and the following disclaimer.
15*57dc7cfbSriastradh  * 2. Redistributions in binary form must reproduce the above copyright
16*57dc7cfbSriastradh  *    notice, this list of conditions and the following disclaimer in the
17*57dc7cfbSriastradh  *    documentation and/or other materials provided with the distribution.
18*57dc7cfbSriastradh  *
19*57dc7cfbSriastradh  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*57dc7cfbSriastradh  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*57dc7cfbSriastradh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*57dc7cfbSriastradh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*57dc7cfbSriastradh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*57dc7cfbSriastradh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*57dc7cfbSriastradh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*57dc7cfbSriastradh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*57dc7cfbSriastradh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*57dc7cfbSriastradh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*57dc7cfbSriastradh  * POSSIBILITY OF SUCH DAMAGE.
30*57dc7cfbSriastradh  */
31*57dc7cfbSriastradh 
32*57dc7cfbSriastradh #include <sys/cdefs.h>
33*57dc7cfbSriastradh __KERNEL_RCSID(0, "$NetBSD: linux_backlight.c,v 1.1 2021/12/19 10:46:55 riastradh Exp $");
34*57dc7cfbSriastradh 
35*57dc7cfbSriastradh #include <linux/backlight.h>
36*57dc7cfbSriastradh 
37*57dc7cfbSriastradh int
backlight_enable(struct backlight_device * backlight)38*57dc7cfbSriastradh backlight_enable(struct backlight_device *backlight)
39*57dc7cfbSriastradh {
40*57dc7cfbSriastradh 	return 0;
41*57dc7cfbSriastradh }
42*57dc7cfbSriastradh 
43*57dc7cfbSriastradh int
backlight_disable(struct backlight_device * backlight)44*57dc7cfbSriastradh backlight_disable(struct backlight_device *backlight)
45*57dc7cfbSriastradh {
46*57dc7cfbSriastradh 	return 0;
47*57dc7cfbSriastradh }
48