From patchwork Tue May 15 14:33:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Silvan Murer X-Patchwork-Id: 10401303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5521A601D2 for ; Tue, 15 May 2018 14:33:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 413F41FE82 for ; Tue, 15 May 2018 14:33:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34C301FF40; Tue, 15 May 2018 14:33:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1AB61FE82 for ; Tue, 15 May 2018 14:33:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752661AbeEOOdF (ORCPT ); Tue, 15 May 2018 10:33:05 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37269 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752454AbeEOOdE (ORCPT ); Tue, 15 May 2018 10:33:04 -0400 Received: by mail-wm0-f65.google.com with SMTP id l1-v6so1565461wmb.2 for ; Tue, 15 May 2018 07:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=WqfCOI2HKcLIyZO9S3nD+gv24EWssgYGLi4xDvtjkAo=; b=N7aSbKBF7kGLxU4kw4f7TUHETT0NppGkewqwLv8XXHe+mLc6L0ohWzWu7BRtDwRCx8 u/dH/xQsd5uaB9v4BkHQgL35zDXm/nQX3QNxIRTqNDcWkQQr//iu9P61kf4BtFwfq6a0 2+9aJ6VTq/Vz5gUDtJVweJgkO7WthG985++K8T01DGoacOOZIN7AaW8dwSUOHvLiDl9v hd4bVhH/KX1Eq1Jjw/ylTiAPWTMKTOVeHK7u7yvVotPs9QPYiQNcxuyomx29/HdUsTWA tJjGr+SU8IJkpg4h2l7hi9cr5uj4iS3TXrChxNOxyB2E32JSjstEdn3wqp3eTV/wlgv5 SVTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=WqfCOI2HKcLIyZO9S3nD+gv24EWssgYGLi4xDvtjkAo=; b=lhTYvQAHHG1kj3Qz6tYbT+kec2BJ68jU9kkNxc3m5U/L3T9LaKZtI0IKxpqX5WJFeM geSbL+l0LTtLzmekHgdvdixUjJHnPgsqiSYb1CQ3Nlt6Gq7KSVvI8h3K4tUvVFxsnDBI bShQhtY2wqmtJsQ44LAZ0AQDPmdjt3HR3gmEvcQFPXGyT9HBmvi9+eB1AO/p1yvgFN1H WH99L+cmpmwNEDCH1b7cuX/Gfa+MG/m9kRskiU2cNXtgzBtq3GYEDHCjUHUXQVJtjAgO 4LAOtX9E3D61EnbMJwFYXcMiYHTRWqpJcLS1i5h6AGC//kfX6kuXBz1hK1LWetD/VmyC 0w6w== X-Gm-Message-State: ALKqPwdbGzVZYlQuPBVSlgyXtavMmAo9twvnwScMa1TiL6HNZK9avCeD DfNStZVUX1Wpkm2aH82WlpCoag== X-Google-Smtp-Source: AB8JxZoto4+v9GGY60jnHa2/nvh+oiNlKpgycd4PPqnNVsiltjIc5enOSWE1GY4s7g1MyOSdtR7LlQ== X-Received: by 2002:a50:b384:: with SMTP id s4-v6mr18312121edd.28.1526394783418; Tue, 15 May 2018 07:33:03 -0700 (PDT) Received: from heldsksm.heliotis.ads (154.40.3.213.static.wline.lns.sme.cust.swisscom.ch. [213.3.40.154]) by smtp.gmail.com with ESMTPSA id a11-v6sm205076edr.89.2018.05.15.07.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 07:33:02 -0700 (PDT) Message-ID: <1526394782.32235.3.camel@gmail.com> Subject: [PATCH] iio: dac: fix missing of_match_table assignment in LTC2632 device From: Silvan Murer To: lars@metafoo.de Cc: linux-iio@vger.kernel.org, jic23@kernel.org Date: Tue, 15 May 2018 16:33:02 +0200 X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fix a missing og_match_table assignment in the LTC2632 device Signed-off-by: Silvan Murer Reviewed-by: Lars-Peter Clausen ---  drivers/iio/dac/ltc2632.c | 19 ++++++++++---------  1 file changed, 10 insertions(+), 9 deletions(-) --  2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/iio/dac/ltc2632.c b/drivers/iio/dac/ltc2632.c index ac5e05f..d322b78 100644 --- a/drivers/iio/dac/ltc2632.c +++ b/drivers/iio/dac/ltc2632.c @@ -276,15 +276,6 @@ static const struct spi_device_id ltc2632_id[] = {  };  MODULE_DEVICE_TABLE(spi, ltc2632_id);   -static struct spi_driver ltc2632_driver = { - .driver = { - .name = "ltc2632", - }, - .probe = ltc2632_probe, - .id_table = ltc2632_id, -}; -module_spi_driver(ltc2632_driver); -  static const struct of_device_id ltc2632_of_match[] = {   {   .compatible = "lltc,ltc2632-l12", @@ -309,6 +300,16 @@ static const struct of_device_id ltc2632_of_match[] = {  };  MODULE_DEVICE_TABLE(of, ltc2632_of_match);   +static struct spi_driver ltc2632_driver = { + .driver = { + .name = "ltc2632", + .of_match_table = of_match_ptr(ltc2632_of_match), + }, + .probe = ltc2632_probe, + .id_table = ltc2632_id, +}; +module_spi_driver(ltc2632_driver); +  MODULE_AUTHOR("Maxime Roussin-Belanger ");  MODULE_DESCRIPTION("LTC2632 DAC SPI driver");  MODULE_LICENSE("GPL v2");