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 E408BC636CC for ; Sun, 19 Feb 2023 23:47:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D417885A58; Mon, 20 Feb 2023 00:47:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="lBs9URhC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6946C8592D; Mon, 20 Feb 2023 00:46:15 +0100 (CET) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 4368A85918 for ; Mon, 20 Feb 2023 00:46:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd29.google.com with SMTP id w22so423521ioc.0 for ; Sun, 19 Feb 2023 15:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DToM+3w8WcLwOrR41Zd35NXMd2O68l5mz7Qq8Os4KYY=; b=lBs9URhC1Gn6M5T3ufnkA5+XVC3+6T4a7Ql5hOMARnWM5Zn0H1z7uqUGXT6JDI8SRt nefKz62kf1I2/lgUsoGnT2smHaz5nSUVJCBri7QXtsfMWKeqQyQeJ86FwkqGaGhn3/1u z7CDBquo4ujRPMNWXHFtvBuj7njRmscaS/MNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DToM+3w8WcLwOrR41Zd35NXMd2O68l5mz7Qq8Os4KYY=; b=JIyWQUsuxenD1/F+Q+/Z7Ygdbwg4rSFnnSqAJ9p1IpZJcaTvGLbhOOpFSXxrc2STV4 x2djMGvVHJCCQyUE8dxgADb23iH0rhtVZQclwVV9ns+cIfrYnvVJjeLnkOrHuu5QNyW2 TWJ6GvQORWlzOf8HkYCULNaf563y4s12sYWD41gi+UfgdJEFu6oket+Mhm9daYpu1Cxw OnBsnZ0hRoKIMViKN27oB4MtZbzA14Jp3Oa7hyvar+V1wRmKU8CL4glnCFoUTAVU1C4G KmdaimSjwm7IVDUox0NEeKPrUSvpWDLX/OG8DEYo7teX0THHRWPdnXu6eqKkuv136FWT qnXg== X-Gm-Message-State: AO0yUKVijrryi+mTj1FUSzpVgBe+Bs4remiRCFNVzwf5pIzaNP4uqgff P+cSwa8/xX/FEayGJ/hwhfEpJP1WgoC3/DM3 X-Google-Smtp-Source: AK7set8qWpq5D8aA21nisCac+yGPDxlyk+/uqgtxyb6eCZQx940vhKtd9Ly/cLYwEAKCzkK3UzDn4g== X-Received: by 2002:a5e:a801:0:b0:6bc:d714:520f with SMTP id c1-20020a5ea801000000b006bcd714520fmr6511477ioa.15.1676850365868; Sun, 19 Feb 2023 15:46:05 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n23-20020a02a917000000b0037477c3d04asm3485333jam.130.2023.02.19.15.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 15:46:05 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v4 03/46] sh4: Drop unused twl6030 driver Date: Sun, 19 Feb 2023 16:44:44 -0700 Message-Id: <20230219234527.1849470-4-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230219234527.1849470-1-sjg@chromium.org> References: <20230219234527.1849470-1-sjg@chromium.org> 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.6 at phobos.denx.de X-Virus-Status: Clean This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass --- (no changes since v1) drivers/input/Makefile | 1 - drivers/input/twl6030.c | 47 ----------------------------------------- 2 files changed, 48 deletions(-) delete mode 100644 drivers/input/twl6030.c diff --git a/drivers/input/Makefile b/drivers/input/Makefile index 14c0ea73254..71f315adf6f 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile @@ -14,5 +14,4 @@ obj-$(CONFIG_APPLE_SPI_KEYB) += apple_spi_kbd.o obj-$(CONFIG_I8042_KEYB) += i8042.o obj-$(CONFIG_TEGRA_KEYBOARD) += input.o tegra-kbc.o obj-$(CONFIG_TWL4030_INPUT) += twl4030.o -obj-$(CONFIG_TWL6030_INPUT) += twl6030.o endif diff --git a/drivers/input/twl6030.c b/drivers/input/twl6030.c deleted file mode 100644 index 76bd3488fc6..00000000000 --- a/drivers/input/twl6030.c +++ /dev/null @@ -1,47 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * TWL6030 input - * - * Copyright (C) 2016 Paul Kocialkowski - */ - -#include - -int twl6030_input_power_button(void) -{ - u8 value; - - twl6030_i2c_read_u8(TWL6030_CHIP_PM, TWL6030_STS_HW_CONDITIONS, &value); - - /* Power button is active low. */ - if (value & TWL6030_STS_HW_CONDITIONS_PWRON) - return 0; - - return 1; -} - -int twl6030_input_charger(void) -{ - u8 value; - - twl6030_i2c_read_u8(TWL6030_CHIP_CHARGER, TWL6030_CONTROLLER_STAT1, - &value); - - if (value & TWL6030_CONTROLLER_STAT1_VAC_DET) - return 1; - - return 0; -} - -int twl6030_input_usb(void) -{ - u8 value; - - twl6030_i2c_read_u8(TWL6030_CHIP_CHARGER, TWL6030_CONTROLLER_STAT1, - &value); - - if (value & TWL6030_CONTROLLER_STAT1_VBUS_DET) - return 1; - - return 0; -} -- 2.39.2.637.g21b0678d19-goog