Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3366556ybb; Tue, 31 Mar 2020 03:54:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuI+61vBCxxXy8Iwh+9r6AFj5OTNejrQrzSyo8n/mI/g4lJlgRiNR14Ckr4WT7RARaYcoM7 X-Received: by 2002:aca:efd4:: with SMTP id n203mr1640689oih.159.1585652095167; Tue, 31 Mar 2020 03:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585652095; cv=none; d=google.com; s=arc-20160816; b=uIsvBxnaJk7t0I4mj1MYo7ro0TlIyGz5Lr1kLQ8h8tm6fpwr5eFd4mQOl0/8l9ESRw NzcX923TGeoydbBlRc2kfnbmvOccVVqyQ/JdXUZyBmCm0uhogxqPCyFO8JZg/gRm86Zn R4ZeyMxamqSiCFhrR0YDux7ekQvH1MJilprVRTRYN8WXNPcd/r35wDCe9ArLqZrGzymr BLXXrn1FFZ9lGhe2TbCU3V1rvWHoOb9eBaBzoAOqETzIuCQQG8FMJJ1PmTxYMQ/VpngW qbOt/NzPEyQiWgdiNvQ9Ks3F4y3TSwhOJWL4NQVv4DV7mS3XuUq1Hyo+FMpXTAmlfsL9 NxQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=iBxNdl2NfJa7URtm+B1HNk2KEdrDaDOdRlGfsxy1+e4=; b=GhxFPMqJzcRgsXm6bMEKz1zFq0TPNnH/eXTKILVzYr1rZMObP4DQ26GmIb4Rxu7IGe YKgyC3gSOy5PpvAqiAxHvj0hrcVwoaMGfCwTCNmv7ldgKQqqqWKUwYh4i1iOHp3MF6lx 4CAnMqCZmsv9ilQk+ojRZvfc6yNPLr14u+1LKzranH3/5qNppOrVBaEJQxFc559ZeSoZ zJsmfkp3Ib+VFommswYkNCIcdFVkmn3k8cfeeE5kL6IaqfSrSdNIKNf85bl655kTrr9q JgCK37H6jCia8cJM8baSAS6yelJpIClCgJoKopg+zZeCGsJNAkDBM9sNm8yk00vjhqRn 7QEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si5331964oto.214.2020.03.31.03.54.43; Tue, 31 Mar 2020 03:54:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730982AbgCaKx4 (ORCPT + 99 others); Tue, 31 Mar 2020 06:53:56 -0400 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:43597 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730442AbgCaKxy (ORCPT ); Tue, 31 Mar 2020 06:53:54 -0400 IronPort-SDR: FI83d+LP6hQCVO7qeDjAtyqLRylOo0iZxrYFONzU18h1LGhmaQplFE3XNm37X1mpkJqvt5nli9 gS+CRKsiLu/0FMxDsednGFADXt8IrSjvha+8+sQ3a/olLvttgsqMdGOjC05TclxGuuNoqdFY61 IRzWk+PsvtQrZ1+z2Ft9qYeddI59LvtqIjevviIONGU4QY9vkJdi53yGvPnNzYJaaWWX9oRrhx y67agsZnn1PUqhIBzME8hQ6/Xf5+UhhGFTxu5e1blkc4KiJvsg1WmZMlE1vG4wEmClU25yHvy1 gwU= X-IronPort-AV: E=Sophos;i="5.72,327,1580803200"; d="scan'208";a="47330846" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 31 Mar 2020 02:53:53 -0800 IronPort-SDR: 9nLGWcYtbMcKIIL9wJ8C5xMlioyufVD/KUUOGX5rjnF/YBam1WnLR76VJJxlVTMSzARajY1kqb 5uoPI7prUwh1IphNNqK/uFWD5u4MJv/VSyrNObWXmGeVjRl9ZHoneaJIW3vhfy5iMiOf3Ifjr4 Evk1leMshBBGptTupOi0j5GbCyYnjH9a63yVLsgAIOtPrymnE6omQDhcMMyjNnQ742yhg7JEFu Y7heyLgJatbMc05HedJ7RDpkxiYYbkKaxLvG2j3AO5ZoPNUyTxVxdiW1osCsELvT74YCqP+WTV f0k= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v10 47/55] Input: Atmel: improve error handling in mxt_update_cfg() Date: Tue, 31 Mar 2020 03:50:43 -0700 Message-ID: <20200331105051.58896-48-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200331105051.58896-1-jiada_wang@mentor.com> References: <20200331105051.58896-1-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Deepak Das mxt_update_cfg() failed to propagate the error code from mxt_init_t7_power_cfg() so return the error code. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 258dcd8a68e5..069a532bd0b2 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -2185,7 +2185,9 @@ static int mxt_update_cfg(struct mxt_data *data, const struct firmware *fw) dev_info(dev, "Config successfully updated\n"); /* T7 config may have changed */ - mxt_init_t7_power_cfg(data); + ret = mxt_init_t7_power_cfg(data); + if (ret) + dev_warn(dev, "Power Config failed to update\n"); release_mem: kfree(cfg.mem); -- 2.17.1