Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4378812pxj; Tue, 25 May 2021 06:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN7XhPO/yinegxEuvwVzxfb7Pd2MAGRWgmAkLbrE4iBc2hnemqeAB2yx7c6d1ucdLkyUpK X-Received: by 2002:aa7:cdd8:: with SMTP id h24mr31446462edw.276.1621950346714; Tue, 25 May 2021 06:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621950346; cv=none; d=google.com; s=arc-20160816; b=YKK6LNIcecW7VdGO2KH6/mNqTcStb07vAuVkd6S7aGGE2YGltQNnQd4cmu2w9SCZBe GgQ3KQo9A87HeYV7wv9JvyjrULdNanQ/N+wM/OjTN0L6h1ujRxiICNRRKgNK7kF7PAeS AoSQ/NMgVtu50NHqYH5/d5AMuZiZPWgVYJcqhsUgpjWm/QWf/uBxcO72bOx+bWhuNAyD MR/IZ1Yb+C/4Clo5lGOoiLeQ0ngKgafJA9Q8GpOXECqtuHU/cg1Nped4HGhMFNhCJMZl zoMyynEGCTXecVhAujYr3A9bMv7wY9kRDNCeF6Q6FPHS9u/ddsfCOUqrJgwRmnRo3Lh4 TL1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aonDRYTQeGH5NtH1f7VKKPGW7F9jnTMZZZfhaX4jzt4=; b=mtmADRZJ6sGrrhm6ZOIC8PfyHSTuMvGjMtJdJZtFUbzGLkqPoc1fUVXr9WnvnoPIIJ uaZP0UPlWs1kIoueRnQhPuAnJ2pCQvAgRVpwf5nHhXqS3mcUPz411wWsKCFtUzMo/mWV vFk1dM1PMpyNU+P2s71PVMBl2vNs/Pyxce+jLXzmLkP3HvL2hUDIjk2wgSdn4Y7K2etz hY0xOn0Gm9OlNzOi+471ZoTxl6MIMEs9QMRIbkgUmJfH2qeh/+PxMNusxVHqrPo6ODuU wY0aqdWygTRUaI0hHuGxJZplb74GFAXR4ea0Hk4OGskHZJ5EXyoo9YgZMb23WyLwDiOs AcXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=EsZMeqsK; 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 v15si16251547edc.109.2021.05.25.06.45.22; Tue, 25 May 2021 06:45:46 -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=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=EsZMeqsK; 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 S233339AbhEYNo1 (ORCPT + 99 others); Tue, 25 May 2021 09:44:27 -0400 Received: from www.zeus03.de ([194.117.254.33]:59598 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233155AbhEYNo0 (ORCPT ); Tue, 25 May 2021 09:44:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=bhV3YP72IjNVHNzEPafPtYj2MGU r+1tGwx1KjtHWfhE=; b=EsZMeqsKAzK2U24ygL7ndlGyRcj+miLZPhPxKmUXW1p yi2XvGtvOSvG6NE5UzBAxFYrjGh1jzX6yjtYT6ctc6SFdRIBUlEFVPu5xBIXxGFZ lO71e2tdsgh0wjUt/5GRBLHYjHgUBqiS6y5Td6xWBySq8JuRCwiqfVx+zyyg5UHU = Received: (qmail 1269530 invoked from network); 25 May 2021 15:42:54 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 25 May 2021 15:42:54 +0200 X-UD-Smtp-Session: l3s3148p1@rrrTsyfDksAgAwDPXxHuALK7lyLF31aG From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: Support Opensource , Lee Jones , Mark Jonas , Hubert Streidl , stwiss.opensource@diasemi.com, Wolfram Sang Subject: [PATCH] mfd: da9063: propagate errno when I2C mode fails Date: Tue, 25 May 2021 15:42:43 +0200 Message-Id: <20210525134243.4003-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't hardocde EIO but use the obtained value. Signed-off-by: Wolfram Sang --- drivers/mfd/da9063-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 783a14af18e2..4b7f707b7952 100644 --- a/drivers/mfd/da9063-i2c.c +++ b/drivers/mfd/da9063-i2c.c @@ -448,7 +448,7 @@ static int da9063_i2c_probe(struct i2c_client *i2c, DA9063_TWOWIRE_TO); if (ret < 0) { dev_err(da9063->dev, "Failed to set Two-Wire Bus Mode.\n"); - return -EIO; + return ret; } } -- 2.30.2