Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20EDBC433EF for ; Sat, 11 Jun 2022 03:01:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ACCEC84434; Sat, 11 Jun 2022 04:59:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="YP0bEzKm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 117E28442F; Sat, 11 Jun 2022 04:59:54 +0200 (CEST) Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B74978440C for ; Sat, 11 Jun 2022 04:59:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf35.google.com with SMTP id h18so823815qvj.11 for ; Fri, 10 Jun 2022 19:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=oDz3ryYbkK/9vlVmG25N/CSnUVB7pD01bf88NLv2lZE=; b=YP0bEzKmaD4EMwfP+YMma8I5617eZWKpc9CAH1YBDjWUVTnXmzhTRjUchsdenNDbP4 URmrpcRqUtXpCivptErBXdiHREgmKDrsmupCsq27bf8JhQUevWemNZOLVwbndkj+XlXT G2eBZLVSgM1A4cHDOW5scK5Zc6uni9qM9pfMg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oDz3ryYbkK/9vlVmG25N/CSnUVB7pD01bf88NLv2lZE=; b=yhGYBWWCJTTjcGg0isPkLxJF3ZoRomrDSrb3qviKcMA4EnqeMG2qfNrCdC6A1IY9Ul 0sfJY+h5gqN7eifYra60uWDisCeSGpXDsGgK58uaV6VHKyP9HLIDE348cz3f6WigaFtD SpRg4Rz40+bhCbg9mtEe0Kwesh197skGjlUocsRr68lwiM7/d7uw9ZtG7zD61S3nDW2u skQScyzcir13HbsGfoiVe4rrGsfr9JDPUS+oBP9sI/tNreaGVI/0swilkTVOTYRo2T4H f1sPlY8G5rxCH5NF98BpTPleb3Mrj1oYEB+XIMPYgR3TgDCH9gKPPYGAVv+wkR2cp0VP 43bA== X-Gm-Message-State: AOAM5322miw4GlIZStVGvjXJLBYjD4sCLrYbtI/I0VGb+lw8vdLc3HYZ SNDTS2kMD3DfWbyHw6lMLEKS+qhiLB3ucA== X-Google-Smtp-Source: ABdhPJxSdVyv4+ANJXjRH+Mw/BZ7TSt4hpPH6A6aVX93AHd+zPIf/9uT6lQwO24JHp05CJVPGjSD3g== X-Received: by 2002:a0c:fec4:0:b0:46a:b39e:d18b with SMTP id z4-20020a0cfec4000000b0046ab39ed18bmr27011840qvs.84.1654916390306; Fri, 10 Jun 2022 19:59:50 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id 142-20020a370894000000b006a6acd33f18sm899926qki.8.2022.06.10.19.59.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 19:59:49 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 09/15] arm: exynos: Remove old pwm backlight driver Date: Fri, 10 Jun 2022 22:59:32 -0400 Message-Id: <20220611025938.2151916-9-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220611025938.2151916-1-trini@konsulko.com> References: <20220611025938.2151916-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Remove the unused older exynos pwm backlight driver. Signed-off-by: Tom Rini --- .../mach-exynos/include/mach/pwm_backlight.h | 20 --------- drivers/video/exynos/exynos_pwm_bl.c | 44 ------------------- 2 files changed, 64 deletions(-) delete mode 100644 arch/arm/mach-exynos/include/mach/pwm_backlight.h delete mode 100644 drivers/video/exynos/exynos_pwm_bl.c diff --git a/arch/arm/mach-exynos/include/mach/pwm_backlight.h b/arch/arm/mach-exynos/include/mach/pwm_backlight.h deleted file mode 100644 index c7d3a91e3183..000000000000 --- a/arch/arm/mach-exynos/include/mach/pwm_backlight.h +++ /dev/null @@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (C) 2012 Samsung Electronics - * - * Author: Donghwa Lee - */ - -#ifndef _PWM_BACKLIGHT_H_ -#define _PWM_BACKLIGHT_H_ - -struct pwm_backlight_data { - int pwm_id; - int period; - int max_brightness; - int brightness; -}; - -extern int exynos_pwm_backlight_init(struct pwm_backlight_data *pd); - -#endif /* _PWM_BACKLIGHT_H_ */ diff --git a/drivers/video/exynos/exynos_pwm_bl.c b/drivers/video/exynos/exynos_pwm_bl.c deleted file mode 100644 index a3d467aa23b5..000000000000 --- a/drivers/video/exynos/exynos_pwm_bl.c +++ /dev/null @@ -1,44 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * PWM BACKLIGHT driver for Board based on EXYNOS. - * - * Author: Donghwa Lee - * - * Derived from linux/drivers/video/backlight/pwm_backlight.c - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -static struct pwm_backlight_data *pwm; - -static int exynos_pwm_backlight_update_status(void) -{ - int brightness = pwm->brightness; - int max = pwm->max_brightness; - - if (brightness == 0) { - pwm_config(pwm->pwm_id, 0, pwm->period); - pwm_disable(pwm->pwm_id); - } else { - pwm_config(pwm->pwm_id, - brightness * pwm->period / max, pwm->period); - pwm_enable(pwm->pwm_id); - } - return 0; -} - -int exynos_pwm_backlight_init(struct pwm_backlight_data *pd) -{ - pwm = pd; - - exynos_pwm_backlight_update_status(); - - return 0; -} -- 2.25.1