Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1403381ybi; Thu, 30 May 2019 17:13:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9Bfw6dZK5ov/MxvSP5oPJ+mcqOhjmRIMOudTz9n2ipa3IzYQLvKB4tpu0mtxdtgXupjw8 X-Received: by 2002:a17:902:b089:: with SMTP id p9mr6350663plr.38.1559261615616; Thu, 30 May 2019 17:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559261615; cv=none; d=google.com; s=arc-20160816; b=h1h8wbn+xfZ7KU8zTDQ5CySWAm9TbsluFrA3fYT2NSS/XMrvWe2x/ZNpJIhnJL29Es SW2L/Y+WhyiTl+dcHs+3TX1pfjuJnKYuZ8/U4aF1ZkLbygZoeTWzn5EEKj5xaCGxJms+ eZ8OI7Vy8vshufG9eHiqcaRQ1LoygNuSKfXcnMHx5SEHXUUy4p6h3UoJ0wn0hRzmhcu1 xtuPw/CVLJiYYgMMJwJ4RU5BYNgDrvFhFzSwuzvcjGC1LkP9VLvRD7k1Sm580LZPfUpy 6j83BORA6JpSZC1MFkP9apsdmTWGqJD7uCcqffE3TLEqgTqSKxuvVgn+d8hXx17xtJVV Sq3g== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DSE94TVoI42z4WrnfBSGPneQzIz1SWXhkTsgLxfT0AU=; b=weVEOv4vSnda0cdTG08KTp5d6SqiXqMX0NBI89a8uKzPD2y6jZEoiNRmRPz2JF+on7 BxMlUgclZa+yhlO1wIZlp5SExVYzePhyFm+WCvBtuVlxaklL4ieaKLTTmxsI8wfFMSPK sEnE5GCbu+ni4eK9J8a01F6tLcQS0zykfrVN7SSbRaXQiimdA4Szr9A/ZbBgBiI6Ky/Z tCPXse7Wgi7n78gqvbysiIGelAchIduDjK50n4afCMZgmkiQHR939zF45+EcS7yP6o7X w0xT2QMOO7sUmUt7Xtruy9YUWcysF9n6qe2oLnA3NFqtZqT0okRtSwBhtqHT1v/T8jKt XguQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TVN6SLSz; 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 2si4374379plc.228.2019.05.30.17.13.18; Thu, 30 May 2019 17:13:35 -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; dkim=pass header.i=@kernel.org header.s=default header.b=TVN6SLSz; 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 S1726498AbfEaAL5 (ORCPT + 99 others); Thu, 30 May 2019 20:11:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:54814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfEaAL5 (ORCPT ); Thu, 30 May 2019 20:11:57 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C7230262F7; Fri, 31 May 2019 00:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559261516; bh=BkaAkAYsINjPVicGtwZ4jKcRDAQKYbJITXtawe8Ms1c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TVN6SLSzV1E834OCk47mM45jcIm9bLRoI24rvMu01vyyCnjkWaiHvED1NnjdAwXxC VuQr4GqaR8Ia9HoR7Kw2/j6UFGentX1Yr3PK1MkGLQcsu9pK/jUgxbHtrL40TABbaf ClQTV4i08DGeKAEbxLpn13N7I1R4k27yuY9ME9iQ= Date: Thu, 30 May 2019 17:11:56 -0700 From: Greg KH To: Matt Sickler Cc: Simon =?iso-8859-1?Q?Sandstr=F6m?= , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/4] staging: kpc2000: add spaces around operators in core.c Message-ID: <20190531001156.GA25210@kroah.com> References: <20190524110802.2953-1-simon@nikanor.nu> <20190524110802.2953-2-simon@nikanor.nu> <20190530210558.GA21455@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 30, 2019 at 10:57:09PM +0000, Matt Sickler wrote: > >From: devel On Behalf Of > >Greg KH > >On Fri, May 24, 2019 at 01:07:59PM +0200, Simon Sandstr?m wrote: > >> --- a/drivers/staging/kpc2000/kpc2000/core.c > >> +++ b/drivers/staging/kpc2000/kpc2000/core.c > >> @@ -276,18 +276,18 @@ static ssize_t kp2000_cdev_read(struct file *filp, > > > >This whole function just needs to be deleted, it's a horrible hack. > > >From the outside, I would definitely agree with you. On the inside though, we > rely on this function to quickly identify what kind and version is running on > a given piece of hardware. Since that same information is provided by an ioctl, > I could be convinced to remove this API and write a userspace application that > uses the ioctl to get the information and pretty prints it. The ioctl needs to die as well, just use the sysfs entries instead, as you already have them :) > I'd be more inclined to agree with the deletion if it means the whole char dev > interface can be removed from the kpc2000 driver. That won't be straightforward > as the ioctl is exposed through this interface. We could remove the ioctl, but > we'd need to ensure that all the same information is exposed via sysfs. I think you are there already, what is missing? > Our userspace side is all funneled through a single class, so changing > it to use sysfs wouldn't be too difficult. I'd support that change if > someone wants to make it. I will be glad to do that, it's always nice to delete code :) thanks, greg k-h