Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1346932imm; Wed, 18 Jul 2018 23:18:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpep9Aumwe7PwB3w3Ax6oTQK/xdW66TUbRBlrxECzPVaBz30biJ9lOvaDATyv/sUR4Qghzxp X-Received: by 2002:a17:902:280b:: with SMTP id e11-v6mr8816532plb.298.1531981100401; Wed, 18 Jul 2018 23:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531981100; cv=none; d=google.com; s=arc-20160816; b=usJBEoq9+3Am3gLTJFw//MKwwljJSadf255LA0L1rmr6KwWBzweCBneBfnojqCPDBY mazlIW44kpD4DhoGL/1aMAwgZr1wxQzQ9TmT1i08SzfHak8gQEK+aKBPUWndXs87DP41 yUcrz7JZoG2OfMHXXR64+YvuV4SA5lBBaEgNypTDU/+akhNlyXU7hAIqCk4rO0pzLf8R 9KiKzypWrYaWWc5j/uoHv/A+guxpcbMrmiESrhTJfQqD6+lL6RsP9V0URSOtwdJo+Ori SFtOK26Fazz5BF0HN+O5uflaZyVRmp/Q+kCDlmvMZQqsVZ32dDT2K7BbX39FbfAGji30 FtOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=urPsCfORqVhCLZDJTPf2ZximlAs7IGJzS5y5c0Ghgc8=; b=yxfY/lRRSO9sJpXEr29BTkErviP9ArJnWYPzFRR5XuP7NqWN8aimkh+Q4jzpDxJQBI 6MtGZbdHIPPb1CZdQLr20lGtZ/s57/wUS+Cp+CMg793j50aO8h6kmfKn1zs7NcBANtuL oY2KfaCphcMrVrVDWFQZ8E0yzzDa7qMVxhdxZEfGjZEzDHcYPIH+SFSrEAdKlkHjUbHx St1gpfTzDfyP62XIniBWsAD87DYePFDexALcgcOHCwntA7QDzkQKAUoGtI2/YLKIVVtd vZW77S8J7M704eHV6E2w3rff+Ezf2xoAYela5sscCOBDUqp8k44MHBDyhz8S38Lba0gb NSpg== ARC-Authentication-Results: i=1; mx.google.com; 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 a10-v6si5093288pln.349.2018.07.18.23.18.05; Wed, 18 Jul 2018 23:18:20 -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; 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 S1727470AbeGSG67 (ORCPT + 99 others); Thu, 19 Jul 2018 02:58:59 -0400 Received: from mail.bootlin.com ([62.4.15.54]:50633 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbeGSG67 (ORCPT ); Thu, 19 Jul 2018 02:58:59 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B627D20766; Thu, 19 Jul 2018 08:17:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 4C6C32069C; Thu, 19 Jul 2018 08:17:29 +0200 (CEST) Date: Thu, 19 Jul 2018 08:17:28 +0200 From: Boris Brezillon To: Janusz Krzysztofik Cc: Miquel Raynal , Tony Lindgren , Aaro Koskinen , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Linus Walleij , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Artem Bityutskiy Subject: Re: [RFC PATCH 1/8] mtd: rawnand: ams-delta: Use private structure Message-ID: <20180719081728.46eb7ab5@bbrezillon> In-Reply-To: <20180718235710.18242-2-jmkrzyszt@gmail.com> References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180718235710.18242-2-jmkrzyszt@gmail.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Jul 2018 01:57:03 +0200 Janusz Krzysztofik wrote: > Introduce a driver private structure and allocate it on device probe. > Use it for storing nand_chip structure, GPIO descriptors prevoiusly > stored in static variables as well as io_base pointer previously passed > as nand controller data or platform driver data. That's a good thing. Thanks for doing that. > Subsequent patches > may populate the structure with more members as needed. > > While at it, fix missing mtd->dev.parent and drop useless mtd->owner. I'd prefer to have it done in a separate patch if you don't mind.