Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1004838ima; Sun, 21 Oct 2018 02:31:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV63cAWQqRm5j8v4nN/+KrZYHjSCU2vWOxNGBQFoVGVPbz0TeY9GQxDJ2EPUJ2ZF9L2DVJCUw X-Received: by 2002:a62:5343:: with SMTP id h64-v6mr41041105pfb.226.1540114282832; Sun, 21 Oct 2018 02:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540114282; cv=none; d=google.com; s=arc-20160816; b=knHVS0hoxiwe07Ui2Oh6xHd4v8dZ3k0eAgfqiR0XyXF7Ly4S10keLghyQCfIG3pu82 5FtZSLRr9hEit5qQRc3mBiA8q25L+T0f/xQDEnZ7XE2xX+ZIFJuH+/ii7FMtoBTNNjmF 1L6rEuzstbUHvstTrWJCmGETiuhbz4ELKVVaJe97+hm8bmwslZrpcIYtnI70q99djA0m 5luBvxI64h6Wh3t+HZkuQ8YviX3ca9JmGj5Vzyfr/H4CcJCUAHLycpOl/wnIWg1xqStL tcId7S9GSkZKBB0gp16bXDrk+uxO7noQ4OghWxYOgYnh6amVYAZHBr8rISmdaAUEqG6I wN9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mAd9Zg8Y4VUte4+0CYil3USyp7CihOl7TO2JWuwN8cw=; b=AhIwbQ1HX/eYPrLiU1/jLeW4IEZstxP5vxf4nYXQN0Y2cw2t+8hx3czGZIBEC/VRTg BpORt3xjr67QKRi5nw09RlelR0SPo6/vpZIKuSKWkm66oyzPlGyV6t7hEkBbNMb5Wl29 rCMV6V1kfpVXoQ1ZwaQ1gbhyZHarzcksPvfHDGhpgKxJmE3pVN969Hoi8abTpJhScCd4 8+tc8S5GupBGZyP8g2iSw85iqSnMmUc3rsJnQxD/5h5MrH3J6I1A3U3E1tgScks1YSGn A8l7818A9B8Oy3l+br62eOyAs1zWRGtnNqf4OmOf774bJOCurqVAKd5Zf1bKoOZwOoGO qJfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@interia.pl header.s=biztos header.b=e5gqxObk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18-v6si31188649pfg.70.2018.10.21.02.31.07; Sun, 21 Oct 2018 02:31:22 -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 (test mode) header.i=@interia.pl header.s=biztos header.b=e5gqxObk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727493AbeJURn0 (ORCPT + 99 others); Sun, 21 Oct 2018 13:43:26 -0400 Received: from smtpo.poczta.interia.pl ([217.74.65.157]:47195 "EHLO smtpo.poczta.interia.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbeJURn0 (ORCPT ); Sun, 21 Oct 2018 13:43:26 -0400 X-Interia-R: Interia X-Interia-R-IP: 188.121.17.172 X-Interia-R-Helo: Received: from x220.localdomain (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; Sun, 21 Oct 2018 11:29:42 +0200 (CEST) Date: Sun, 21 Oct 2018 11:30:02 +0200 From: Slawomir Stepien To: Nishad Kamdar Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: Re: [PATCH] staging: iio: ad2s1210: Switch to the gpio descriptor interface Message-ID: <20181021093002.GC7662@x220.localdomain> References: <20181021061924.GA11073@nishad> <20181021083138.GB7662@x220.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181021083138.GB7662@x220.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1540114183; bh=mAd9Zg8Y4VUte4+0CYil3USyp7CihOl7TO2JWuwN8cw=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: User-Agent:X-Interia-Antivirus; b=e5gqxObkL0dSFHaKhYDwDH04rBO70kgzyGM2W43dLE4XYC/xYKAGfZMLof2+rHsZP YrcuSJ2ApqsTRl3iZ5Qk4wj5K/cJV93kt0T5YuEVwfESLXaCF3Qt20wMuU4xlm07r0 7b1yV3HBBxjEEAii5/pVaiIlcYxKmegCfsM85/Vs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On paź 21, 2018 10:31, Slawomir Stepien wrote: > On paź 21, 2018 11:49, Nishad Kamdar wrote: > > -static int ad2s1210_setup_gpios(struct ad2s1210_state *st) > > +static int ad2s1210_setup_gpios(struct spi_device *spi, > > + struct ad2s1210_state *st) > > This change is not needed. The st has the spi_device inside. Use container_of() > macro here. Wait...what? I mean use direct access using st->sdev. -- Slawomir Stepien