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 B9CB5C61D97 for ; Sun, 29 Jan 2023 01:19:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 444988580A; Sun, 29 Jan 2023 02:16:20 +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="IKMCVzTP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1C780857BB; Sun, 29 Jan 2023 02:15:59 +0100 (CET) Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (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 48F0F857E5 for ; Sun, 29 Jan 2023 02:15:49 +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-il1-x129.google.com with SMTP id u8so3848353ilq.13 for ; Sat, 28 Jan 2023 17:15:49 -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=Bg0UQ7/PKo4c7tH+zaJKlQQl0oVItFb4YpqJoLQmCt8=; b=IKMCVzTPgVHSGN7LpYV8rX06/7hWulT/Yb7tzB+/zWc72mi4VH7YjIYpV3YGafi5UJ LZFUfAAXvJqrSMIkIt9D7XrtlGxHVXebZXaZii9W0rB7f6cbtK/NVwsKd0pkBkYucHR1 gAS91uiYn21jz/LYyQUzTpKNTotcG/IvFRbPI= 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=Bg0UQ7/PKo4c7tH+zaJKlQQl0oVItFb4YpqJoLQmCt8=; b=3hsYfpCM/4cbSDJhUzmWMXVpm+UgYeeZarIg1yvI9XwszEk4/UTb5M+LRCOlLDMtCx Lqcl7kixT+n3glQVEbJHeeVR2lJvegqra5bWGSj/oeYS4Q0yE6AkkwdWR3aS5WEhZKon DaAsSip88eAIl6M6M02GtjUyp0Vmye/p8rqogOimkyaRpSTdT8NY9RwthEPhYz1X71h4 vFz18PHX/TBY8W2S5u4I3khEGOym+OeRr9nqcLD14uEXvA/Y+dcL/7rg0C4T3qTERved m+RT14RY/YVg5l+9tVPQC0sWIg6fJwAFD85QEPlNIDtYHAzjzS0+80k2dDudDlDpVskB rYgA== X-Gm-Message-State: AFqh2krz6RPT2BRNqyOiLL+6PgFc/wZipjwVtMM47C5WvFy2SlHJfMSl 8Q1PwfC/X7ImTVePwttYDTYSFy4T4H1lqeq+ X-Google-Smtp-Source: AMrXdXsfH4hu/aUJmcoUDnjg3KUm4lQQEffloqdXId2/Fsgp5Lfbmcmm4Zw9tDInWj3tdQeISQfFzg== X-Received: by 2002:a92:cb8c:0:b0:30f:15a6:8857 with SMTP id z12-20020a92cb8c000000b0030f15a68857mr30878315ilo.29.1674954947920; Sat, 28 Jan 2023 17:15:47 -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 b5-20020a92c145000000b003024dd5c682sm568613ilh.71.2023.01.28.17.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 17:15:47 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v2 74/87] sh4: Drop unused twl6030 driver Date: Sat, 28 Jan 2023 17:58:50 -0700 Message-Id: <20230129005903.74918-75-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230129005903.74918-1-sjg@chromium.org> References: <20230129005903.74918-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 ded76bddb22..11868e7584c 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile @@ -13,5 +13,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.1.456.gfc5497dd1b-goog