Received: by 10.223.185.116 with SMTP id b49csp2263091wrg; Mon, 12 Feb 2018 07:03:04 -0800 (PST) X-Google-Smtp-Source: AH8x224W86Og47UKtWsJKp7j+0fBzMpjSA2Yj11mlRZIc2G9X0gb/7AsAjyP1Vf8aQxiTPtJeaw7 X-Received: by 2002:a17:902:7683:: with SMTP id m3-v6mr7590621pll.316.1518447783940; Mon, 12 Feb 2018 07:03:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518447783; cv=none; d=google.com; s=arc-20160816; b=PgZ9/lP9aI5e4u+EAlnPh38TSuTCplN13Wc0ZPD4MDPjKz8s3FkubCzwgJDnVZcxjD VKiNJ5AsXU0dA3uEJaqGHAH0coboKs3PiKM69XUGuu7rFGQXU2rjnRWgUM12eCROsxnf zckxYN7KKpvjBfH34quX0eX5Q7iU4ZaoHpa71AJqJXhvEJ1YCAlVRj9yDFMgmC8qFAxC tOcwPp14juCSECjbXS2DnsNPDCgqlzFeds0HATS4i6r/NgvNfRQxlAIW+ZDO5rBCTPCY 0nu0aP76nz0btbnBv8Q+b3f3ZkxSFQmR3ki0A/BCzusyXWb+Z1GJAicl0AC010CE/6TT SRjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=fhE8ni0wfha9BX6kqxzjU8A+/SFANqLNaCo7lG0i9fM=; b=KlCMesb4przviGe2gR3AwdrX6F1Z5c1fXNknwCG4HXt5/jtBJ0SmdJ1jvpMRBSEkF2 DPDNAO0hZ/ePA5kYuAqL5V9BsbZYkYuDjgVtZkvI9V5mYi/aYsXLHP0gWKYoWHoxUQZR O+SLpH10peIlRlxSM50rQUE6QC2xU1Rhesms7HUYYc1uuQV1ec7lAMRGBvxLg9GSqODh n2ityxwp8ktQFStUXFTd84pcC9xc7Y2TX9/EpilvL3QilodvSAxUW2y8e4rZPLjG5K3e raFgeGpq5OB0IhsSHC9KcA99zNRuxspq6cdrgHjwGjtq3Ddfjk0eMNEO6+kCMKv/yLOU htuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fuitc/1K; 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 f84si825059pfh.363.2018.02.12.07.02.38; Mon, 12 Feb 2018 07:03:03 -0800 (PST) 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=Fuitc/1K; 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 S936018AbeBLOmK (ORCPT + 99 others); Mon, 12 Feb 2018 09:42:10 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:36229 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933843AbeBLOmI (ORCPT ); Mon, 12 Feb 2018 09:42:08 -0500 Received: by mail-io0-f196.google.com with SMTP id l17so17498175ioc.3; Mon, 12 Feb 2018 06:42:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fhE8ni0wfha9BX6kqxzjU8A+/SFANqLNaCo7lG0i9fM=; b=Fuitc/1K4daYNReSgDLu3mygP/do5iOLc3ZFrbHRZy4UV89TjFMZFCjGvhDL2yxVgQ mFGXltg0rrl+6vKI+JuASKzm/sK0S0QcSUCwjddQxQCFREpsRweoWL9dTe+49LH6d5ba uF02bP+GEBFvIcENJiC12Yjk9lpT75BHbiB7yNQfKTD+hYbOK7n+fLlZbo5ssjL4lKMw N4b9+pKK1i+Hd3fPezE7aEMcx4Ig9JeCEl5aKV+gA6aruWZsBRQpeYxQCB6mBjiaAWIp 89knSgq1h37bi1QMkX3VJwul8R6AL44nEUsg5iWrG1n2nd2BkU8d1P6xYUNtnomHM6eh gPuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fhE8ni0wfha9BX6kqxzjU8A+/SFANqLNaCo7lG0i9fM=; b=ABwA6qCQMAspduUo/wooolQVzMZXdtr/9svVM9hUntsNX2+yPHlBw8Qr6yQqAJJ92H eFrRCvmXQv9GVv35QhbfBZbeCIinq1sS+MX7c7YMLT4y1bIuzQBn4BMFoLqWdS2ofJ5m iNhIkTmYkBwRxTLXZMKA6NSZgAoCmxHZWj5GExHAYm/nMVsgpGwCxPzfFo51pT2kgegG cerrjUP7G1ualXcfeT+WtY01fESTFDftveHlORnP489ADJ5eAUF0vsj8dHDCv7eF5Ib+ zbyoA55Xf1YlwCqeZa0SAp4xVbt2c1ybgA69QLeXb9NlBH2/oY9fRgyj0/ktdZT+fe6p J0NA== X-Gm-Message-State: APf1xPAjiCH89mQzQkUXqnZLjlo6HQekiwkr0ojm5cVn1E5Hv46Rffpy IVzbRw29amzFdGwkfN4/3pM= X-Received: by 10.107.13.143 with SMTP id 137mr13087365ion.265.1518446527247; Mon, 12 Feb 2018 06:42:07 -0800 (PST) Received: from himanshu-Vostro-3559 ([103.46.193.14]) by smtp.gmail.com with ESMTPSA id v76sm7563948itb.41.2018.02.12.06.42.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 06:42:06 -0800 (PST) Date: Mon, 12 Feb 2018 20:11:57 +0530 From: Himanshu Jha To: Dan Carpenter Cc: 21cnbao@gmail.com, jic23@kernel.org, devel@driverdev.osuosl.org, lars@metafoo.de, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de Subject: Re: [PATCH 4/4] staging: iio: accel: Move adis16201 driver out of staging Message-ID: <20180212144157.GC12142@himanshu-Vostro-3559> References: <1518436499-8584-1-git-send-email-himanshujha199640@gmail.com> <1518436499-8584-5-git-send-email-himanshujha199640@gmail.com> <20180212131826.ebazvmp6iv7i5fav@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180212131826.ebazvmp6iv7i5fav@mwanda> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 04:18:26PM +0300, Dan Carpenter wrote: > I think -M is prefered for these types of diffs? Not sure. I wrote about that in the cover letter if you missed. :) > On Mon, Feb 12, 2018 at 05:24:59PM +0530, Himanshu Jha wrote: > > +static int adis16201_probe(struct spi_device *spi) > > +{ > > + struct iio_dev *indio_dev; > > + struct adis *st; > > + int ret; > > + > > + indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); > > + if (!indio_dev) > > + return -ENOMEM; > > + > > + st = iio_priv(indio_dev); > > + spi_set_drvdata(spi, indio_dev); > > + > > + indio_dev->name = spi->dev.driver->name; > > + indio_dev->dev.parent = &spi->dev; > > + indio_dev->info = &adis16201_info; > > + > > + indio_dev->channels = adis16201_channels; > > + indio_dev->num_channels = ARRAY_SIZE(adis16201_channels); > > + indio_dev->modes = INDIO_DIRECT_MODE; > > + > > + ret = adis_init(st, indio_dev, spi, &adis16201_data); > > + if (ret) > > + return ret; > > + > > + ret = adis_setup_buffer_and_trigger(st, indio_dev, NULL); > > + if (ret) > > + return ret; > > We should clean up the IRQ which we enabled in adis_init() instead of > returning directly. I'm not sure about how to do that. -- Thanks Himanshu Jha