Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753868AbdLDKYz (ORCPT ); Mon, 4 Dec 2017 05:24:55 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:25363 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753788AbdLDKYp (ORCPT ); Mon, 4 Dec 2017 05:24:45 -0500 Date: Mon, 4 Dec 2017 13:24:19 +0300 From: Dan Carpenter To: Simon =?iso-8859-1?Q?Sandstr=F6m?= Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux@Wolf-Entwicklungen.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] staging: pi433: Rename enum dataMode in rf69_enum.h Message-ID: <20171204102419.onpiyz2dpos4ooc5@mwanda> References: <20171203151726.16639-1-simon@nikanor.nu> <20171203151726.16639-6-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171203151726.16639-6-simon@nikanor.nu> User-Agent: NeoMutt/20170609 (1.8.3) X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 643 Lines: 18 On Sun, Dec 03, 2017 at 04:17:25PM +0100, Simon Sandstr?m wrote: > Renames enum dataMode and its values packet, continuous, continuousNoSync > to enum data_mode and PACKET, CONTINUOUS, CONTINUOUS_NO_SYNC. Fixes > checkpatch.pl warnings: "Avoid CamelCase: , ". These names are too generic. Delete them. Use DATAMODUL_MODE_PACKET and friends directly. int rf69_set_data_mode(struct spi_device *spi, u8 val) { return WRITE_REG(REG_DATAMODUL, (READ_REG(REG_DATAMODUL) & ~MASK_DATAMODUL_MODE) | val); } Only DATAMODUL_MODE_PACKET is ever used. There is no need to validate the parameters. regards, dan carpenter