Received: by 10.223.185.116 with SMTP id b49csp2265850wrg; Mon, 12 Feb 2018 07:05:06 -0800 (PST) X-Google-Smtp-Source: AH8x226hqSgEojO1fwckGiJMyf5iR3PD0hFYnPfh9Cbi3egCqf0EjbdIqVCRWSLrF4sG4l4vuFIs X-Received: by 10.99.128.195 with SMTP id j186mr7297924pgd.37.1518447906670; Mon, 12 Feb 2018 07:05:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518447906; cv=none; d=google.com; s=arc-20160816; b=leFAXKHn+dS6WbR9mSLMB99QLxCqkY0wRV4uOSmiyOL10TuPyTkd8I9qFUGcP0gfHR 5oyLSjNgEwshRo3kh1OrNHd5T4/CZ+5sEJSgcofV5tY5f2R1WZxaCatOb7ihz65YS1Z5 K13awJf3w0mPewF5Ml7OMVA8i/q19NtgRJIoFDH5mAktqk25FQKExCFKav3RTrM6YK5K lUr5FlfaKCfBmvVEiJgfJ4qoMXvk2M1BD48M5tuce9adccK8L5JuSduX6RlRIdt0SzAz clqjxI9Nxv7sdHv7EhCSc4m2XftR8X8+GThJCAd6r7wVK6Am3soRh5VPA7J8UWr5fEjs 3Byg== 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=hgMEb4+M+Sb9C5pFDWSKKuGonTg394e3QYhKE04lJWM=; b=Dx4K6J7ePBrDxs/jy8npxQQa0/M1ohwb0mAdSP5PC8sQW1g8F1pgL91u6LW2y7DqVb EPWk9akTwSuBnSXUVfL224+05bJYaT721a7LEus9rbCz/9BXxAxBLKMHLYtEZpqDzNqx BQm+SVSL5b35XXUoFe1q9NPrP68vCE1kVdDWowOsb3Q5a9NuYJ5DV7FE/L7gcxSaLx2X ZW7UmhiLlfjijGUGeO3ocTthoqM/h1v/0Q0d5qD9lEq7YrCsZFiZYXclSBfyBkC7g77e wy965O/AzZ32PiAQ0Uze9dJUzjc88MFh0hqpgpgLmj/sRuyufriQ79KLi9AcsafIOGSO /8Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=VUbYAS7C; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si332956pgr.20.2018.02.12.07.04.49; Mon, 12 Feb 2018 07:05:06 -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=@oracle.com header.s=corp-2017-10-26 header.b=VUbYAS7C; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935651AbeBLOrK (ORCPT + 99 others); Mon, 12 Feb 2018 09:47:10 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:46598 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754244AbeBLOrF (ORCPT ); Mon, 12 Feb 2018 09:47:05 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1CEglNb193269; Mon, 12 Feb 2018 14:46:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=hgMEb4+M+Sb9C5pFDWSKKuGonTg394e3QYhKE04lJWM=; b=VUbYAS7CXyGO6jDMHpDIQxq17H13KwanXOATbEQCm1ZXq+y9KlInah0o9uvKG+S9cNHP mrntyOAtu411mXvbOZ55k7wTfYgg4vw2Td7SQKTjo/zVvJ2nYCkOtBa/VFzUBth/LMDu Fv+8ASt+Y3zns3p4FKDWGP+yRONLvP94/XQhDTNJyRb+p9MD9ZkYD7Y/RcBYSheof8eu LuKXokhLj4Sp9TWRbS9LmJDRfC2vSCceN0SKqNnwLfdu72xd+DtBdoVBpwOxBjtC95h6 OT+qYIIaLKgc4uP/b5krlLfj66NEp463FMYnOq0N9C5eNFVKyKPD1yKE3FHHLeeiWcfk 8g== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2g3c3eg9aa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Feb 2018 14:46:20 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w1CEkIiw012877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Feb 2018 14:46:19 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w1CEkHXb028067; Mon, 12 Feb 2018 14:46:18 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Feb 2018 06:46:17 -0800 Date: Mon, 12 Feb 2018 17:45:42 +0300 From: Dan Carpenter To: Himanshu Jha Cc: devel@driverdev.osuosl.org, lars@metafoo.de, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, gregkh@linuxfoundation.org, 21cnbao@gmail.com, linux-kernel@vger.kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de, jic23@kernel.org Subject: Re: [PATCH 4/4] staging: iio: accel: Move adis16201 driver out of staging Message-ID: <20180212144542.qievoq76rvjigwm4@mwanda> References: <1518436499-8584-1-git-send-email-himanshujha199640@gmail.com> <1518436499-8584-5-git-send-email-himanshujha199640@gmail.com> <20180212131826.ebazvmp6iv7i5fav@mwanda> <20180212144157.GC12142@himanshu-Vostro-3559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180212144157.GC12142@himanshu-Vostro-3559> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8802 signatures=668668 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=779 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802120190 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 08:11:57PM +0530, Himanshu Jha wrote: > 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. :) > Yeah. I seldom read cover letters. > > > + 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. > I believe in you that you can figure it out. :) regards, dan carpenter