From patchwork Wed Apr 23 09:13:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 28852 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2B716203AC for ; Wed, 23 Apr 2014 09:15:37 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i4sf4001759oah.0 for ; Wed, 23 Apr 2014 02:15:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=Jbb77C3mYM2AFzO0SM4A1Mt0Blg+pvje2faaVIQfuOg=; b=ZFlKNesfD/Yf3wLkbbnuqDeSHFptvgBQNi1vJnL2gByRWP+FPZlhweh2tyLLj7kypD 0Mxvc7pE+6wBEoG2CDC7wEAazejXjk6WOVXVNgILtrLtGnuW1bdH6VdSof7lExWbNzAu Fdbu0vbbZ/RhojaDB2p41CCM+y9bBwYQ9uaHFlJhsq6kVX/J6x/YV0omAjLL0apdjFFz 1ZbBiyVw8WNaCKDRfjoW2epGSnodW0c45/OosI/0EXWQ7rHkzu1pzahFEOihGGRF2fw2 BendifgBJrVt1GqYQKm+THqgjzos4Q8Ms+vqpl/93wECVEzwZRbLBLorVO5i6LwzQxDT gYoA== X-Gm-Message-State: ALoCoQkWyxdhsIv2JOltYFStJDaR811WBA3aHRsxw8kRiu/5UHPsiHrBX2aSS5jQBErh9yN55Nnj X-Received: by 10.43.75.198 with SMTP id zb6mr20285077icb.22.1398244536460; Wed, 23 Apr 2014 02:15:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.229 with SMTP id j92ls504617qgf.89.gmail; Wed, 23 Apr 2014 02:15:36 -0700 (PDT) X-Received: by 10.52.108.164 with SMTP id hl4mr11725701vdb.25.1398244536302; Wed, 23 Apr 2014 02:15:36 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id cq3si58505vcb.162.2014.04.23.02.15.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:15:36 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so827327veb.9 for ; Wed, 23 Apr 2014 02:15:36 -0700 (PDT) X-Received: by 10.52.123.39 with SMTP id lx7mr34463448vdb.22.1398244536155; Wed, 23 Apr 2014 02:15:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp88654vcb; Wed, 23 Apr 2014 02:15:35 -0700 (PDT) X-Received: by 10.14.220.130 with SMTP id o2mr61450335eep.42.1398244535360; Wed, 23 Apr 2014 02:15:35 -0700 (PDT) Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id p8si2223303eew.276.2014.04.23.02.15.34 for ; Wed, 23 Apr 2014 02:15:35 -0700 (PDT) Received-SPF: none (google.com: alsa-devel-bounces@alsa-project.org does not designate permitted sender hosts) client-ip=77.48.224.243; Received: by alsa0.perex.cz (Postfix, from userid 1000) id B5FAF2650F0; Wed, 23 Apr 2014 11:15:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.2.4 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id B5C5F261600; Wed, 23 Apr 2014 11:15:17 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4F26F261696; Wed, 23 Apr 2014 11:15:16 +0200 (CEST) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by alsa0.perex.cz (Postfix) with ESMTP id 1436B2608EA for ; Wed, 23 Apr 2014 11:15:07 +0200 (CEST) Received: by mail-pb0-f50.google.com with SMTP id md12so590050pbc.37 for ; Wed, 23 Apr 2014 02:15:06 -0700 (PDT) X-Received: by 10.68.163.3 with SMTP id ye3mr53097787pbb.78.1398244506702; Wed, 23 Apr 2014 02:15:06 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id gj9sm1097322pbc.7.2014.04.23.02.15.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:15:06 -0700 (PDT) From: Tushar Behera To: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org Date: Wed, 23 Apr 2014 14:43:58 +0530 Message-Id: <1398244438-2124-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 Cc: broonie@kernel.org, rdunlap@infradead.org, lgirdwood@gmail.com, robh+dt@kernel.org Subject: [alsa-devel] [PATCH] ASoC: max98095: Add an explicit of_match_table X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Create an explicit of_match_table entry for MAX98095 codec. Also add a binding Documentation for this compatible string. Signed-off-by: Tushar Behera --- .../devicetree/bindings/sound/max98095.txt | 16 ++++++++++++++++ sound/soc/codecs/max98095.c | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/max98095.txt diff --git a/Documentation/devicetree/bindings/sound/max98095.txt b/Documentation/devicetree/bindings/sound/max98095.txt new file mode 100644 index 0000000..bacbeaa --- /dev/null +++ b/Documentation/devicetree/bindings/sound/max98095.txt @@ -0,0 +1,16 @@ +MAX98095 audio CODEC + +This device supports I2C only. + +Required properties: + +- compatible : "maxim,max98095". + +- reg : The I2C address of the device. + +Example: + +max98095: codec@11 { + compatible = "maxim,max98095"; + reg = <0x11>; +}; diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c index 03f0536..8e548af 100644 --- a/sound/soc/codecs/max98095.c +++ b/sound/soc/codecs/max98095.c @@ -2399,10 +2399,17 @@ static const struct i2c_device_id max98095_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, max98095_i2c_id); +static const struct of_device_id max98095_of_match[] = { + { .compatible = "maxim,max98095", }, + { } +}; +MODULE_DEVICE_TABLE(of, max98095_of_match); + static struct i2c_driver max98095_i2c_driver = { .driver = { .name = "max98095", .owner = THIS_MODULE, + .of_match_table = of_match_ptr(max98095_of_match), }, .probe = max98095_i2c_probe, .remove = max98095_i2c_remove,