From mboxrd@z Thu Jan 1 00:00:00 1970 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 66E36C38142 for ; Tue, 31 Jan 2023 12:55:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E6EEB8599E; Tue, 31 Jan 2023 13:55:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Aqd86rvC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A947885A78; Tue, 31 Jan 2023 13:54:52 +0100 (CET) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (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 9B9FE85A7C for ; Tue, 31 Jan 2023 13:54:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jh80.chung@gmail.com Received: by mail-pj1-x102d.google.com with SMTP id n20-20020a17090aab9400b00229ca6a4636so18949246pjq.0 for ; Tue, 31 Jan 2023 04:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ELFpXBVbWPw0fAauL6qRF/BqNS3IlpjsTcd4nl4wwsE=; b=Aqd86rvC0dxRLEzhnIKe2RKNhovbF2OzDkUihhOzWGqz+NZmygvvmJjHO2bGZFDnYV D2B4BAss4z/ifzJNN34C1uJsp4W6ww8TVbLCEBa0q3vvM3OICF2b1OzdviNKC3jJ2s5N zvO3rPIhENHmaWf3sk/fheSgin6i1NcAU8WLzV5v6i76BqisIX47MczUlK/Kssso8YIV URnc0VYKl3OtAp6NnFnAEJ2teBuGhHZD38mHxhWtK6AtFLkJiZ2h3ZsZwgxJkxn8mTyf B1CSMRBiyxjon8OkTUHcMrSy4fIhtJ6yhUDuARuzaCjUPr20MhK/JVmmhNslQ8yqE/ee HShQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ELFpXBVbWPw0fAauL6qRF/BqNS3IlpjsTcd4nl4wwsE=; b=g/NABdcR4d/Aqt4wjVeBr0SbwWMKa2kANIwlkkpdlOlGCczT1JkwSxx4bJCxZcWr4s ECjVMIkdEb4aAzZTwRqccH+3oT5b8lIqUkQvYcrXq3GAivsZqQmhosm8/FYzyLDsgAuE TTRliQeQvak3gIQkxS8nzoOiE06eoeuG5xyWT1egjqoEMtUIOhZ2NzSnRNTGKLGWsiIr AqghYw6nRTYoeMj8P7vcwZ0mMBx5cBWy2ZlaAHhzeQKUEY3ZLJYY57p0cmqHlv3W2z5E DNThgSmvztLSPUajpIS12Nh2AePbqANEfQQ+Pm+1+PiNWmtWeiUW1fk/NOeUIVvOUJQv iNXQ== X-Gm-Message-State: AO0yUKU8uHtWvOhHyusK2Mzf0H433W3Jn7Ae03iP4KAeQj1cGpdSRweT SPyLBQdWChceB0WjQBIj6jE= X-Google-Smtp-Source: AK7set9jCcJFxjgz+EnBSYTSNsPqxp82xdN59cKswdoJ1Iytg4J//T2/wF4VxXLljuIeWYbQEK6i8g== X-Received: by 2002:a17:903:230c:b0:196:7a90:5f48 with SMTP id d12-20020a170903230c00b001967a905f48mr9333270plh.24.1675169654688; Tue, 31 Jan 2023 04:54:14 -0800 (PST) Received: from [192.168.0.19] ([183.99.112.216]) by smtp.gmail.com with ESMTPSA id l13-20020a170902d34d00b0018bc4493005sm9720839plk.269.2023.01.31.04.54.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Jan 2023 04:54:14 -0800 (PST) Message-ID: Date: Tue, 31 Jan 2023 21:54:11 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 59/88] power: Drop unused muic_max8997 driver Content-Language: en-US To: Simon Glass , u-boot@lists.denx.de Cc: Tom Rini , Jaehoon Chung , Lukasz Majewski , Martyn Welch , Neil Armstrong , Sumit Garg References: <20230123220031.3540724-1-sjg@chromium.org> <20230123220031.3540724-60-sjg@chromium.org> From: Jaehoon Chung In-Reply-To: <20230123220031.3540724-60-sjg@chromium.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 1/24/23 07:00, Simon Glass wrote: > This is not used. Drop the driver and Kconfig option. > > Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > drivers/power/pmic/Makefile | 1 - > drivers/power/pmic/muic_max8997.c | 74 ------------------------------- > 2 files changed, 75 deletions(-) > delete mode 100644 drivers/power/pmic/muic_max8997.c > > diff --git a/drivers/power/pmic/Makefile b/drivers/power/pmic/Makefile > index c3180c58208..0b3b3d62d0e 100644 > --- a/drivers/power/pmic/Makefile > +++ b/drivers/power/pmic/Makefile > @@ -37,7 +37,6 @@ obj-$(CONFIG_POWER_TPS65218) += pmic_tps65218.o > > ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y) > obj-$(CONFIG_POWER_LTC3676) += pmic_ltc3676.o > -obj-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o > obj-$(CONFIG_POWER_PCA9450) += pmic_pca9450.o > obj-$(CONFIG_POWER_PFUZE100) += pmic_pfuze100.o > obj-$(CONFIG_POWER_PFUZE3000) += pmic_pfuze3000.o > diff --git a/drivers/power/pmic/muic_max8997.c b/drivers/power/pmic/muic_max8997.c > deleted file mode 100644 > index 969ce902395..00000000000 > --- a/drivers/power/pmic/muic_max8997.c > +++ /dev/null > @@ -1,74 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0+ > -/* > - * Copyright (C) 2012 Samsung Electronics > - * Lukasz Majewski > - */ > - > -#include > -#include > -#include > -#include > -#include > -#include > -#include > - > -static int power_chrg_get_type(struct pmic *p) > -{ > - unsigned int val; > - unsigned char charge_type, charger; > - > - if (pmic_probe(p)) > - return CHARGER_NO; > - > - pmic_reg_read(p, MAX8997_MUIC_STATUS2, &val); > - charge_type = val & MAX8997_MUIC_CHG_MASK; > - > - switch (charge_type) { > - case MAX8997_MUIC_CHG_NO: > - charger = CHARGER_NO; > - break; > - case MAX8997_MUIC_CHG_USB: > - case MAX8997_MUIC_CHG_USB_D: > - charger = CHARGER_USB; > - break; > - case MAX8997_MUIC_CHG_TA: > - case MAX8997_MUIC_CHG_TA_1A: > - charger = CHARGER_TA; > - break; > - case MAX8997_MUIC_CHG_TA_500: > - charger = CHARGER_TA_500; > - break; > - default: > - charger = CHARGER_UNKNOWN; > - break; > - } > - > - return charger; > -} > - > -static struct power_chrg power_chrg_muic_ops = { > - .chrg_type = power_chrg_get_type, > -}; > - > -int power_muic_init(unsigned int bus) > -{ > - static const char name[] = "MAX8997_MUIC"; > - struct pmic *p = pmic_alloc(); > - > - if (!p) { > - printf("%s: POWER allocation error!\n", __func__); > - return -ENOMEM; > - } > - > - debug("Board Micro USB Interface Controller init\n"); > - > - p->name = name; > - p->interface = PMIC_I2C; > - p->number_of_regs = MUIC_NUM_OF_REGS; > - p->hw.i2c.addr = MAX8997_MUIC_I2C_ADDR; > - p->hw.i2c.tx_num = 1; > - p->bus = bus; > - > - p->chrg = &power_chrg_muic_ops; > - return 0; > -}