Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2748558ybz; Sun, 3 May 2020 08:23:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJjnlI1KgoTcSnv/btMlSmTDQb5FXykvTgE1+emP4lSHPk80AzkQyd3z3lEV2Asd2jJOl86 X-Received: by 2002:a05:6402:b17:: with SMTP id bm23mr11611038edb.137.1588519428370; Sun, 03 May 2020 08:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588519428; cv=none; d=google.com; s=arc-20160816; b=P3TJlAmFEbriK+3yy3LiSMl1zEncAXsTx54/RfWzMaOHK+zVuqPxgwcQ/SuqMAvUNY QOEBPTKMJ6UAZ/Goz3Det6JuO17FGxMGeSlQdnaZ3zjJ3zryuwpbE9gSvQXui5ja7kG7 9b8C2/d/FShPLn2QIMFhed1Jjl84fNrhqldTFi9cws12tRBgoU+3k1CkOTrEGfcmG+Nn atc2b83Ip5tJu3fdk5r25NTRs2iK1Oiw0d41FNHYhjUHVmOA7OUWzzx3EJRK3iw1g0PI IFAuF5/0Rja5yoMtBgACqAp0hHx58TsSH8GHYA0SgmnGc4b0rqq5SYG+5DYDLBnk3m5S 5WMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:references:in-reply-to:message-id:date :dkim-signature; bh=vs+wtdjgFXXm26l03KFKgtyNhcCtnj0e8merU5pMLYA=; b=ItdlP2zyfjIPMu51Ef5CnDgctjUQgDIdejwbH5IaAuWvUiV2Be8ETmujLdNXor9gNl JQMUZ4czPEXbYfo3tWOYXyQEmk05z9WzB+M6VSrQZsphOEArZ1/a/hFX4FKvYHmYuTVU W7JZwgXiO0L8HMPJnBqgBZgMSc8w2Sgc7xHrekdEtzwuVlLtnuT+MdanQpskCl80HVJW zCoSbrWxH6dmiZteDlK1TrV7OWocHctnbWEP8tmuf+QzNpythRpcG7kiagcYKHsccPAn e/qo/in0Fg1C/4LFe0nKbTn2HwX2UMbA5Xpuo+X5cxvChlFy3k0DcWPnJNBWSzFlxLWK R0tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=HhhKdvWP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz5si4897720edb.127.2020.05.03.08.23.09; Sun, 03 May 2020 08:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=HhhKdvWP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728725AbgECPVP (ORCPT + 99 others); Sun, 3 May 2020 11:21:15 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:35642 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728526AbgECPVM (ORCPT ); Sun, 3 May 2020 11:21:12 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 49FV7V1X1KzGj; Sun, 3 May 2020 17:21:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1588519270; bh=9+54rd/b9MFSvGJ5H7aKdvK4EyDceTpr1Ul1xvO7tH8=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=HhhKdvWPt8ojeOojYUmj4BOYsBqW+vWR/x9jk4+hE0l7fLPYtUAgk+l7T1i+ybTvR d5iz0uMsTJpfWEvCXaJOsr9N6OkJwCCHXK/gSrkxOOYFDWg8+ynCbyW9LCxxCPJ9Jc lttnWQxa0Nwlp9cupfyTJVgZZaFtLJ4+oXgguVXjliNSqOV8uUz6v/AQMVkh94DI2+ j1q8mz2QCGsl676C54+sfZB1PMKpY4XQ0gmrIQyoGI52eHLP6WDwsIseRyOsSBe3+x SHYmnjQ0UDyMtNVz9inyMSqyjR7rVM/6YdPTaCsRF6y4vZOF7Xp1eEaWoMroxellQR BS3NXdreBXsDg== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Sun, 03 May 2020 17:21:10 +0200 Message-Id: <1b3c0d2b01c56cfc073f9ff4961f077098edbe67.1588517058.git.mirq-linux@rere.qmqm.pl> In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH v2 01/11] power: bq25890: remove redundant I2C bus check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Sebastian Reichel , Rob Herring Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org regmap initialization will check I2C adapter functionality. Remove redundant check in the driver. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index aebd1253dbc9..c642519ef7b2 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -881,17 +881,11 @@ static int bq25890_fw_probe(struct bq25890_device *bq) static int bq25890_probe(struct i2c_client *client, const struct i2c_device_id *id) { - struct i2c_adapter *adapter = client->adapter; struct device *dev = &client->dev; struct bq25890_device *bq; int ret; int i; - if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { - dev_err(dev, "No support for SMBUS_BYTE_DATA\n"); - return -ENODEV; - } - bq = devm_kzalloc(dev, sizeof(*bq), GFP_KERNEL); if (!bq) return -ENOMEM; -- 2.20.1