// SPDX-License-Identifier: GPL-2.0-only /* * Driver for the Cirrus EP93xx lcd backlight * * Copyright (c) 2010 H Hartley Sweeten <hsweeten@visionengravers.com> * * This driver controls the pulse width modulated brightness control output, * BRIGHT, on the Cirrus EP9307, EP9312, and EP9315 processors.
*/
ep93xxbl = devm_kzalloc(&dev->dev, sizeof(*ep93xxbl), GFP_KERNEL); if (!ep93xxbl) return -ENOMEM;
res = platform_get_resource(dev, IORESOURCE_MEM, 0); if (!res) return -ENXIO;
/* * FIXME - We don't do a request_mem_region here because we are * sharing the register space with the framebuffer driver (see * drivers/video/ep93xx-fb.c) and doing so will cause the second * loaded driver to return -EBUSY. * * NOTE: No locking is required; the framebuffer does not touch * this register.
*/
ep93xxbl->mmio = devm_ioremap(&dev->dev, res->start,
resource_size(res)); if (!ep93xxbl->mmio) return -ENXIO;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.