From patchwork Fri Nov 16 09:47:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Slawomir Stepien X-Patchwork-Id: 10685755 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 045DA109C for ; Fri, 16 Nov 2018 09:47:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7344294F6 for ; Fri, 16 Nov 2018 09:47:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8A4F2C7F3; Fri, 16 Nov 2018 09:47:09 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 C7990294F6 for ; Fri, 16 Nov 2018 09:47:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727571AbeKPT6l (ORCPT ); Fri, 16 Nov 2018 14:58:41 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.153]:44396 "EHLO smtpo.poczta.interia.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727567AbeKPT6l (ORCPT ); Fri, 16 Nov 2018 14:58:41 -0500 X-Interia-R: Interia X-Interia-R-IP: 188.121.17.172 X-Interia-R-Helo: Received: from localhost (ipv4-188-121-17-172.net.internetunion.pl [188.121.17.172]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.poczta.fm (INTERIA.PL) with ESMTPSA; Fri, 16 Nov 2018 10:46:58 +0100 (CET) From: Slawomir Stepien To: lars@metafoo.de, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net Cc: linux-iio@vger.kernel.org Subject: [PATCH 0/2] Use OF API to get the driver data Date: Fri, 16 Nov 2018 10:47:20 +0100 Message-Id: <20181116094722.1070-1-sst@poczta.fm> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1542361622; bh=43qUqLWHUcv9u99BvQ4T+hZBL5+IfdgIJmgJPmFUDRQ=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:From:To:Cc:Subject: Date:Message-Id:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Interia-Antivirus; b=L+zfglHdCGrfccZwJDr3MZJx3GkU9xkqyivPswiqR0FABBxnBs71kZ2vJQgbkpPmi jYAFTMW/4Z1MhHFjZN6rzrSyYy6repxmZAPJi/jI4iLHauSVUBPBocP23JE9YXkDbO usvYIzimHdpuQvcJIo0eJ/kJ0zPWU2Wz0cVFQpu0= 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 series will change how the driver finds out the device data. Now it will first try to use OF API and then, if needed, fallback to the spi framework capabilities. Slawomir Stepien (2): iio: potentiometer: mcp4131: use of_device_get_match_data() iio: potentiometer mcp4131: use spi_get_device_id() only when needed drivers/iio/potentiometer/mcp4131.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)