From patchwork Wed Jan 4 09:29:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Reid X-Patchwork-Id: 710995 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ttsVD3qLQz9t10 for ; Thu, 5 Jan 2017 00:44:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965368AbdADNn7 (ORCPT ); Wed, 4 Jan 2017 08:43:59 -0500 Received: from anchovy1.45ru.net.au ([203.30.46.145]:42906 "EHLO anchovy.45ru.net.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965378AbdADNnx (ORCPT ); Wed, 4 Jan 2017 08:43:53 -0500 Received: (qmail 30080 invoked by uid 5089); 4 Jan 2017 13:43:51 -0000 Received: by simscan 1.2.0 ppid: 30036, pid: 30037, t: 0.0215s scanners: regex: 1.2.0 attach: 1.2.0 clamav: 0.88.3/m:40/d:1950 Received: from unknown (HELO preid-centos7.electromag.com.au) (preid@electromag.com.au@120.145.161.108) by anchovy1.45ru.net.au with ESMTPA; 4 Jan 2017 13:43:50 -0000 Received: by preid-centos7.electromag.com.au (Postfix, from userid 1000) id 2F466302782C6; Wed, 4 Jan 2017 17:30:00 +0800 (AWST) From: Phil Reid To: peda@axentia.se, wsa@the-dreams.de, robh+dt@kernel.org, mark.rutland@arm.com, preid@electromag.com.au, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/5] i2c: mux: pca954x: Add missing pca9542 definition to chip_desc Date: Wed, 4 Jan 2017 17:29:53 +0800 Message-Id: <1483522197-38819-2-git-send-email-preid@electromag.com.au> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1483522197-38819-1-git-send-email-preid@electromag.com.au> References: <1483522197-38819-1-git-send-email-preid@electromag.com.au> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org The spec for the pca954x was missing. This chip is the same as the pca9540 except that it has interrupt lines. While the i2c_device_id table mapped the pca9542 to the pca9540 definition the compatible table did not. In preparation for irq support add the pca9542 definition. Signed-off-by: Phil Reid Acked-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index 8bc3d36..981d145 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -83,6 +83,11 @@ struct pca954x { .enable = 0x4, .muxtype = pca954x_ismux, }, + [pca_9542] = { + .nchans = 2, + .enable = 0x4, + .muxtype = pca954x_ismux, + }, [pca_9543] = { .nchans = 2, .muxtype = pca954x_isswi, @@ -109,7 +114,7 @@ struct pca954x { static const struct i2c_device_id pca954x_id[] = { { "pca9540", pca_9540 }, - { "pca9542", pca_9540 }, + { "pca9542", pca_9542 }, { "pca9543", pca_9543 }, { "pca9544", pca_9544 }, { "pca9545", pca_9545 },