Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2743444pxf; Sun, 21 Mar 2021 05:27:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZpQFnoUEMozE0sUw8LOkeaVP4aX8RwKdA7iWxFVWDkwAbRbq4ZNCIowK5s6CCbx4k46bV X-Received: by 2002:a17:907:3f26:: with SMTP id hq38mr14323766ejc.374.1616329620796; Sun, 21 Mar 2021 05:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616329620; cv=none; d=google.com; s=arc-20160816; b=kIKq7RxgXMS6HBXwMuxGMjPdt0+uP87CG/XB0p0c0VdK04UTaoHtCheaG7FkjgK5BV 68eUmXMk1pfalDhCz8973mWc+tTbr/a5wVKtPC09d7N2AocEBc1OO/T+o4r0btmdq93o glm4LVllGZFYpoGLODkqmk4DAMc6MHZCSvOndZ7zR+rWllGXfQRoyZOjjllLH6hZY3a0 S8ARyY7jeIHo/nZxxx2Q3mAp8u5OcRK9E5nI+y8CcqpiTDtfmznkD7jji0vJ+UaABzVW UJjHBKqD3jKZuFLjOU8DAMjVsWsb0oEDMhwQBqlVsbZD5Q1KhWR97jSiVMTX8sGOESiN rZDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TpSZ8ex+k3CmI7jj/u30KK81lyUC4Lgk5IyLWJcDjN8=; b=AExFlmLT+BjV3MG+KVeZT/vz3rKU6AkZ6ovhA6u7aaPtgp4h8tgqcsx6LmlRaqY3O+ JANidh2fgwH8rAylf1456qmDAVohQu2rD2zWQLrfy4QqZEZZ0RR/D3nvCT4+dA1JjK82 Z3TLguQuAbNMj1ksw+yMC4Ag7hhbzLiRhFMoWR9YfP9axr6Oh2YRZ3S+hgpfaSKHYAmb Sbfq+NWy0877pbrloHydUT55eV4xkXVeTSkcBgu3+byn4/y1/vPFm0jOM/IkguFCmg1e q+4dyRxeYCIOWgdlkNMAxP/zdSyHg8Bgl3QKMHnP+vgRIR++2Hax65+7tQLppVaX+Zxf QiRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="zGfxj3/Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si8547948edr.131.2021.03.21.05.26.38; Sun, 21 Mar 2021 05:27:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="zGfxj3/Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbhCUMYW (ORCPT + 99 others); Sun, 21 Mar 2021 08:24:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:32876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbhCUMYI (ORCPT ); Sun, 21 Mar 2021 08:24:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 75DCD6193E; Sun, 21 Mar 2021 12:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616329448; bh=F6NhSpVdoW4xD9hrDg3OmI2in0AjEwYyN7tOvNFuxh4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zGfxj3/Zhf2b+K4d71IUHlB2auJvl453wQtt+gwFP5ptIsceuhDmJmCbzGgCNOvdL pVI0UT2zd0TtuMYW7Q+9AZ1uCPOeyQbLjhlsgDtuE6JD60+7XQPwzdEqckWpR1zHvR efQxvEqwg82nuOdaIUJlzKcID6UfaI1vFHZakefM= Date: Sun, 21 Mar 2021 13:24:05 +0100 From: Greg KH To: eli.billauer@gmail.com Cc: arnd@arndb.de, devel@driverdev.osuosl.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, dan.carpenter@oracle.com Subject: Re: [PATCH v4 1/2] char: xillybus: Move class-related functions to new xillybus_class.c Message-ID: References: <20210311095033.20956-1-eli.billauer@gmail.com> <20210311095033.20956-2-eli.billauer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311095033.20956-2-eli.billauer@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 11, 2021 at 11:50:32AM +0200, eli.billauer@gmail.com wrote: > From: Eli Billauer > > This patch is a preparation for adding another related driver, XillyUSB. > In order to share some code between the existing Xillybus driver and the > one to be added, some functions are moved to xillybus_class.c > > The header file, xillybus_class.h, is temporarily placed in include/linux/, > because the new XillyUSB driver is intended as a staging driver for the > time being. > > Signed-off-by: Eli Billauer > --- > > Notes: > Changelog: > > v4: > - Fix error code return value bugs in xillybus_init_chrdev() as detected by > Smatch test robot, and reported by Dan Carpenter. > > This patch did not exist prior to v3. > > drivers/char/xillybus/Kconfig | 4 + > drivers/char/xillybus/Makefile | 1 + > drivers/char/xillybus/xillybus.h | 10 +- > drivers/char/xillybus/xillybus_class.c | 263 +++++++++++++++++++++++++ > drivers/char/xillybus/xillybus_core.c | 181 +++-------------- > include/linux/xillybus_class.h | 30 +++ > 6 files changed, 322 insertions(+), 167 deletions(-) > create mode 100644 drivers/char/xillybus/xillybus_class.c > create mode 100644 include/linux/xillybus_class.h > > diff --git a/drivers/char/xillybus/Kconfig b/drivers/char/xillybus/Kconfig > index 130dbdce858f..e7800f025249 100644 > --- a/drivers/char/xillybus/Kconfig > +++ b/drivers/char/xillybus/Kconfig > @@ -3,10 +3,14 @@ > # Xillybus devices > # > > +config XILLYBUS_CLASS > + tristate > + > config XILLYBUS > tristate "Xillybus generic FPGA interface" > depends on PCI || OF > select CRC32 > + select XILLYBUS_CLASS depends on, do not select.