Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751427AbeAOUY4 (ORCPT + 1 other); Mon, 15 Jan 2018 15:24:56 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:38518 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbeAOUYx (ORCPT ); Mon, 15 Jan 2018 15:24:53 -0500 X-Google-Smtp-Source: ACJfBotDN/FlVzGx/P8/SUhKhbbVNpgU3CX5oDTxdUHZ3z5VVDKryUwzisyEDBsfvCLcHu0WCyjBr/1UgTq4Szy9vpE= MIME-Version: 1.0 In-Reply-To: <1516018126-16119-1-git-send-email-hofrat@osadl.org> References: <1516018126-16119-1-git-send-email-hofrat@osadl.org> From: Andy Shevchenko Date: Mon, 15 Jan 2018 22:24:52 +0200 Message-ID: Subject: Re: [PATCH] Documentation: i2c: drop unnecessary .owner field in examples To: Nicholas Mc Guire Cc: Wolfram Sang , Jonathan Corbet , linux-i2c , Linux Documentation List , Linux Kernel Mailing List , Nicholas Mc Guire Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 15, 2018 at 2:08 PM, Nicholas Mc Guire wrote: > From: Nicholas Mc Guire > > Currently there are a few drivers that still set the .owner > in the i2c_driver structure - all of which are reported by > coccinelle (scripts/coccinelle/api/platform_no_drv_owner.cocci) > and there are no cases that set the .onwer and do not call any > of the functions that set the .owner field anyway in any of the > drivers (checked by a modified coccinelle script based on the > above) so it seems that the examples are no longer valid and > .owner = THIS_MODULE, can be removed here. > > While at it an obvious typo (new new) was also fixed. AFAIU It is right only in case when someone does this, e.g. module_i2c_driver() macro. Otherwise the field is pretty valid and must be filled. -- With Best Regards, Andy Shevchenko