1*675aae73SEmmanuel Vadot /*- 2*675aae73SEmmanuel Vadot * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3*675aae73SEmmanuel Vadot * 4*675aae73SEmmanuel Vadot * Copyright (c) 2020 Emmanuel Vadot <manu@FreeBSD.org> 5*675aae73SEmmanuel Vadot * 6*675aae73SEmmanuel Vadot * Redistribution and use in source and binary forms, with or without 7*675aae73SEmmanuel Vadot * modification, are permitted provided that the following conditions 8*675aae73SEmmanuel Vadot * are met: 9*675aae73SEmmanuel Vadot * 1. Redistributions of source code must retain the above copyright 10*675aae73SEmmanuel Vadot * notice, this list of conditions and the following disclaimer. 11*675aae73SEmmanuel Vadot * 2. Redistributions in binary form must reproduce the above copyright 12*675aae73SEmmanuel Vadot * notice, this list of conditions and the following disclaimer in the 13*675aae73SEmmanuel Vadot * documentation and/or other materials provided with the distribution. 14*675aae73SEmmanuel Vadot * 15*675aae73SEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16*675aae73SEmmanuel Vadot * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17*675aae73SEmmanuel Vadot * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18*675aae73SEmmanuel Vadot * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19*675aae73SEmmanuel Vadot * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20*675aae73SEmmanuel Vadot * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21*675aae73SEmmanuel Vadot * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22*675aae73SEmmanuel Vadot * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23*675aae73SEmmanuel Vadot * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24*675aae73SEmmanuel Vadot * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25*675aae73SEmmanuel Vadot * SUCH DAMAGE. 26*675aae73SEmmanuel Vadot * 27*675aae73SEmmanuel Vadot * $FreeBSD$ 28*675aae73SEmmanuel Vadot */ 29*675aae73SEmmanuel Vadot 30*675aae73SEmmanuel Vadot #include <sys/backlight.h> 31*675aae73SEmmanuel Vadot 32*675aae73SEmmanuel Vadot struct cdev *backlight_register(const char *name, device_t dev); 33*675aae73SEmmanuel Vadot int backlight_destroy(struct cdev *dev); 34