Received: by 10.192.165.148 with SMTP id m20csp3924226imm; Mon, 23 Apr 2018 15:10:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx49VviGxlk0PHaeOB1A+yeRIBwcP9rYxIfyVV+xc/snClBARo5O8LxSP5aL+Prc9XxPUNtjZ X-Received: by 10.99.141.193 with SMTP id z184mr13509928pgd.114.1524521402653; Mon, 23 Apr 2018 15:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524521402; cv=none; d=google.com; s=arc-20160816; b=ud3NBxOV/I9NJ58kCUZ9d+1wgow+XaTqxDwkyZ7XWviA7AEaG9XXDvhiaB2YogyU+D eYj8fMIdQGJPd6CuC4mU/FWo5CrQQf/IdANLDED7S12jYJpt987VQdsQsgHAPzLILNzF IWVBks2n7dtXBNAkR/X4B/xTU82EkAATxUaeVbWTvKOPLawReYUx0nZztwdfdMQ0wDkH TXxavK3t9DweZqQKajW0/yqhOTkJazdFhaHpzCjcRv2j2dFevlqq36eX/5y+LDWB5Xmp hrmtTkSVYCmkDwDnQZyAgETlMPdgAMCH827/r3e1/fl1Cc3swc5fM+pPSY5+GkvHa0la sPaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=0KHFhRJBO/HdgM/We7pRaGvF+JmsHiX0NBLbynU/HAA=; b=EkUa8nl5ywD8JGC6H5cOON5i7VCu64Hvn4SV5zbusxZNJHx9klDIgEDY1hWRsLytyM 9k9rmnXhmgTujLhHSu/dob5/NxxXFHvFPAzKEOPIQEWd5LBsvpELXIVQpl5nOn96dI/Z eSMYRDkDwYHc/iu6JksN1tIJ/u3rNRWaIrmeJdhUV2poUY4Y0Xqe/kwOrpAXiEJ7NXAb sHQtCe7fSCgmve6RhMpbESbhhdLLbvmQt9OGccbucQHowrg1GUhEaIKjjhgLAfmyW8sg wxsDsAj6EKnTyb1MC+Lk7Etr/CjQvMq5UGuZVKbMNWy55S9qPzjsvsThMxbYFD10XRaq zPKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hv6Ll7bz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si4396819pgq.603.2018.04.23.15.09.48; Mon, 23 Apr 2018 15:10:02 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hv6Ll7bz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932606AbeDWWIg (ORCPT + 99 others); Mon, 23 Apr 2018 18:08:36 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:43810 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932367AbeDWWIc (ORCPT ); Mon, 23 Apr 2018 18:08:32 -0400 Received: by mail-qt0-f194.google.com with SMTP id l11-v6so19618938qtj.10; Mon, 23 Apr 2018 15:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0KHFhRJBO/HdgM/We7pRaGvF+JmsHiX0NBLbynU/HAA=; b=hv6Ll7bz30Bvw21sa/18jteOOjn0/lXxeatt533GFmnRnu/ha3AkGcox0hxsCAOL2n TTsaaibThjZF3NUm1fRtQ290HZKNtlNZBFHXYPd9+/ouR8SxHpaaS1eDD5BCaKCxjeSq ERDcSsIFdxzvV+C/I0ExNL7Ys+fjiOMKNhW2OrkaVda9+KLB8pojTCnvF/51p7ww43cj TzsyPN7kaIoc7UCPWQYmX93ydrdUAiPKEc1POFVNwfAzMhWgjJnJnGVvzWcNivt4cq83 b19uiPoRHWy4gKPAPR2PtCBIwKbcWBY60B/wKY9Ey3Tf1pNiCMMoCSdhNw/T979ImI/2 SnpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0KHFhRJBO/HdgM/We7pRaGvF+JmsHiX0NBLbynU/HAA=; b=OeIxafXRZKaTRwjL6XxAyFEJXAIHfgCqg2ASCdxl7txv8DYpCzwjjqm9BRqVEZCkWL 8IrnW3JlLPSqbjYpFdqJdgMsXeIEU4QA1sl8wJ9LZXSh+H9Zr745UdhON7j3Pqez3/Ay 5peUbij8jn5RotDzHsaoa9NXx14tihgXEnGwOfRRwnuh4w1CvJVbt4EERXP4VfcBdipY 0n7vjWPA/DweSugwAASGybjGdDzS2jCxmdD+LIgHoMnArWV13CdU3QMJhdrF1yl+JJ/B 88oFZKXqAiOcdwX2s2nfp/kTy6HvICxJ8x+vcGRoRMerCKFJWVj3KYJEhGDA+pPI6m4b Os9Q== X-Gm-Message-State: ALQs6tAwvTM32hC6klOVIQR3mIgRz4SJzPm+lHVNsL+4nn1zuWBBcMbb fqtIs5oOMz3gVKr1Pp3rHN6HjdUdnOioc7eS6i8= X-Received: by 2002:ac8:354f:: with SMTP id z15-v6mr25477468qtb.295.1524521311655; Mon, 23 Apr 2018 15:08:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.144.102 with HTTP; Mon, 23 Apr 2018 15:08:31 -0700 (PDT) In-Reply-To: <20180423213805.12591-3-javier@emutex.com> References: <20180423213805.12591-1-javier@emutex.com> <20180423213805.12591-3-javier@emutex.com> From: Andy Shevchenko Date: Tue, 24 Apr 2018 01:08:31 +0300 Message-ID: Subject: Re: [PATCH v2 2/3] iio: adc128s052: add ACPI _HID AANT1280 To: Javier Arteaga Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Dan O'Donovan" , linux-iio@vger.kernel.org, Linux Kernel Mailing List , Nicola Lunghi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 12:38 AM, Javier Arteaga wrote: > From: Nicola Lunghi > > ACPI _HID AANT1280 matches an ADC124S101 present on E3940 SKUs of the UP > Squared board. > > Add it to the driver. > + if (ACPI_COMPANION(&spi->dev)) { > + const struct acpi_device_id *ad_id; > + > + ad_id = acpi_match_device(spi->dev.driver->acpi_match_table, > + &spi->dev); > + if (!ad_id) > + return -ENODEV; > + > + config = ad_id->driver_data; There is a new API to get it by one call. https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?id=b283f157611f129f5bbbf7d06f5af860d76797fd > + } else { > + config = spi_get_device_id(spi)->driver_data; > + } -- With Best Regards, Andy Shevchenko