Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3320420imu; Sun, 11 Nov 2018 12:18:02 -0800 (PST) X-Google-Smtp-Source: AJdET5eQzev6b8gjxJ0+uRkWpBkAE5Pq3hSpl54mqYZGGnNBtiO8+SZeL5L33KPKuCLqGcyOW82n X-Received: by 2002:a17:902:e207:: with SMTP id ce7-v6mr16735418plb.47.1541967482519; Sun, 11 Nov 2018 12:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967482; cv=none; d=google.com; s=arc-20160816; b=NsHGwVMMOJX8llk2cUcBgV2huQJhjKf6/JT/tlLWniUz7+790Wbq4KFOJjhYj20jVp 7AyQqAP4S30Qe2tUQ5H9V8Fbj5AJiscQaN4um/mqYWiVbQBy+QU+E6xbvt5Rt7U3eWdH hQEAvTbaP28i2Y9WCXTdGED983+uqN6Thu6hJiivDKfLaKv6lOlRLPIcVDUxctjXdUkS D6fXnPj93xtA8syIbbRfC0WuPgO+DLTys9BgBr3jp7U2q7IHIqFsBP6wZ939Kb8sQxUO z4sRjz85bGF+vc8IZjZpfwrjb2yFRRRd78D6fBDc5WZjRm4/45SJTlPpWkl0jw+uDB4p v6WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=km0Wc3agEQYuM/DiG5CcmpKx9K9BK5BsYA2ewnOFpoQ=; b=p7yw/km9V3mjuypl9XQxaUQxKDO68ji4svOw1vpEXOm4DfRf5QJ6k5klvzK2cyE9QM HVMMigH1yG6fsYw42TZ//zGotCyjOqxsIEo5Ol9OMwf+6n5VrkwJ03LQDONg25kTbQF8 5bzCp2kNzWxJvpB9OhZKB6LykXOUwCGKF7Ms2pzWzIbJ8ZFMD5ROnNE8t0PpRY/KfwA7 yzMbhQDUPEaf1LmNxyVvVpaiahqN3BCk4R1JL79vUoSU9Fn4EdU2V5o6EJZwSNiuRF7m 5WUP/3NvuqhCYmeeW7Vag87It9pMnCsrk1+Tgsu74zJ8pcwNVZhmiJesR1EPYWNCC5v1 z1ow== 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 x12-v6si15374298pfn.111.2018.11.11.12.17.47; Sun, 11 Nov 2018 12:18:02 -0800 (PST) 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 S1731935AbeKLGGH (ORCPT + 99 others); Mon, 12 Nov 2018 01:06:07 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:53188 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbeKLGGG (ORCPT ); Mon, 12 Nov 2018 01:06:06 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvtB-0000l8-33; Sun, 11 Nov 2018 19:59:21 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsP-0001QS-4a; Sun, 11 Nov 2018 19:58:33 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Dan Carpenter" , "Lee Jones" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 055/366] mfd: tps65911-comparator: Fix a build error In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter commit ac1886165cd1201c5793099b6fbad1876bf98dfe upstream. In 2012, we changed the tps65910 API and fixed most drivers but forgot to update this one. Fixes: 3f7e82759c69 ("mfd: Commonize tps65910 regmap access through header") Signed-off-by: Dan Carpenter Signed-off-by: Lee Jones Signed-off-by: Ben Hutchings --- drivers/mfd/tps65911-comparator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/mfd/tps65911-comparator.c +++ b/drivers/mfd/tps65911-comparator.c @@ -78,7 +78,7 @@ static int comp_threshold_set(struct tps return -EINVAL; val = index << 1; - ret = tps65910->write(tps65910, tps_comp.reg, 1, &val); + ret = tps65910_reg_write(tps65910, tps_comp.reg, val); return ret; } @@ -86,13 +86,13 @@ static int comp_threshold_set(struct tps static int comp_threshold_get(struct tps65910 *tps65910, int id) { struct comparator tps_comp = tps_comparators[id]; + unsigned int val; int ret; - u8 val; if (id == COMP) return 0; - ret = tps65910->read(tps65910, tps_comp.reg, 1, &val); + ret = tps65910_reg_read(tps65910, tps_comp.reg, &val); if (ret < 0) return ret;