Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp181341ybl; Sat, 30 Nov 2019 23:57:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzgf35fXN9QsfFKzflapNfY9AJXnsLXrTLLwTTgZ0xRBmot6Br/LQSjVpLElR+IKnYec1vu X-Received: by 2002:a17:906:32d7:: with SMTP id k23mr28870041ejk.173.1575187029670; Sat, 30 Nov 2019 23:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575187029; cv=none; d=google.com; s=arc-20160816; b=N64JlfnwR73tunLphI/g8a+48O95IvxDD8uCZJ5pbtbOdZSAcRAmP8DFbpIPQysQV2 5vQBCGew8BXs6DuV7FSpyB1oUMMe2AN2HQTOwL6VQG7Q/AI+YpWCWMT7h/asPgcS3gSi rXpFk1AHP15jZ0dvunTDoNUz/uCfL2kLjZjeicKX77fV3wHgWMHNczbQK7SNglwVKf+H W4/vwoBcuqgjPbrgyNfQX5pxpaVYbi/uR/BABEqyInNWlRClMxZIy5X5KcmgLkoIUVYu Go38q5Eb7vhbw0/c5u+uIJS8+PKk05YNwERrFlVax5EJIurh4i8ZTYwZOsasadZN+pL7 /sQQ== 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 :dkim-signature; bh=9ar5lBj/XBoTQRzWdBhddrRjlU7aJCUOJe5hxl/9WVw=; b=oQj52ercG9ahKOVcOEpi2cQiKqm/85qF5ooouIX/r7pPiF3iylzRoWqbQ8uF933y4T o5y5DLoojeHiC5mw6uOv5xr4XbQVioVfULw0Mcr1Poxpr+j88W0bu6H4L0XiQ2l0goVU smnHHc05Q2sN19eIHEN2sjyVyvqKCCJXqXJTht/gHYmJ3NLsi7Gv92w4scRMQkgry0nz bXaWW8aY7aYIGER1Gzf74lW3Lqbmt72CVTJJs2vhe4YmHAj/skCF9OmVGzae3kurIY9u ciHDcgHqV/zIdBdCcfTyRDuPqKN5sg/C2gSr1SVI2ynXEv4b9vsulBsA788zXvMxmzUY MQ1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=T2Y9zX+0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si18450221ejr.295.2019.11.30.23.56.45; Sat, 30 Nov 2019 23:57:09 -0800 (PST) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=T2Y9zX+0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726439AbfLAHvp (ORCPT + 99 others); Sun, 1 Dec 2019 02:51:45 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:48774 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbfLAHvp (ORCPT ); Sun, 1 Dec 2019 02:51:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9ar5lBj/XBoTQRzWdBhddrRjlU7aJCUOJe5hxl/9WVw=; b=T2Y9zX+0DUU6kEa2tFC8aEi4b TujXFgtQuOz9MWTFpWPDKXAXHaT+Cb3gRvVGhVFsYf+KaKlqN3B+DwIQuRGbpqg7wGOVH0H4GLx1U O+TfyyM5mQUIQfwUq85sbrEXirAlZIzLNVFZog3T4+gc2oKJYI7SZpyzKJKPg3IA0Jr7Kw3LtyA2y ZAX7zfIt+vMtR2fqIihodLbhgb0ktTof6R0KySKOVkcI5ctFGWuRxEfXkrvtK1OqpsfshloztnqX3 9aXvp5ISUSRsujDqI9q90oBMHke3BpiwFSPrRQYSRs/C8lR9mQmTn45TfpxVREERCNO5IWXnhTMjD VB9+4fjLA==; Received: from [80.156.29.194] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ibK17-0003SB-S7; Sun, 01 Dec 2019 07:51:42 +0000 Date: Sun, 1 Dec 2019 08:51:38 +0100 From: Mauro Carvalho Chehab To: "Daniel W. S. Almeida" Cc: gregkh@linuxfoundation.org, rfontana@redhat.com, kstewart@linuxfoundation.org, tglx@linutronix.de, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: dvb_dummy_fe: Fix long lines Message-ID: <20191201085138.339a850e@kernel.org> In-Reply-To: <20191112142436.1406-1-dwlsalmeida@gmail.com> References: <20191112142436.1406-1-dwlsalmeida@gmail.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-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 Em Tue, 12 Nov 2019 11:24:36 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Break long lines into smaller ones to improve readability. > > WARNING: line over 80 characters > + memcpy(&state->frontend.ops, &dvb_dummy_fe_ofdm_ops, sizeof(struct dvb_frontend_ops)); > > WARNING: line over 80 characters > + memcpy(&state->frontend.ops, &dvb_dummy_fe_qpsk_ops, sizeof(struct dvb_frontend_ops)); > WARNING: line over 80 characters > + memcpy(&state->frontend.ops, &dvb_dummy_fe_qam_ops, sizeof(struct dvb_frontend_ops)); > > WARNING: line over 80 characters > + FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 | > > WARNING: line over 80 characters > + FE_CAN_FEC_7_8 | FE_CAN_FEC_8_9 | FE_CAN_FEC_AUTO | > > WARNING: line over 80 characters > + FE_CAN_QAM_16 | FE_CAN_QAM_64 | FE_CAN_QAM_AUTO | > > WARNING: line over 80 characters > + .symbol_rate_min = (57840000 / 2) / 6 > > Suggested-by: Shuah Khan > Signed-off-by: Daniel W. S. Almeida > --- > drivers/media/dvb-frontends/dvb_dummy_fe.c | 62 ++++++++++++++++------ > 1 file changed, 45 insertions(+), 17 deletions(-) > > diff --git a/drivers/media/dvb-frontends/dvb_dummy_fe.c b/drivers/media/dvb-frontends/dvb_dummy_fe.c > index 4db679cb70ad..f41c1e0dc8eb 100644 > --- a/drivers/media/dvb-frontends/dvb_dummy_fe.c > +++ b/drivers/media/dvb-frontends/dvb_dummy_fe.c > @@ -37,7 +37,8 @@ static int dvb_dummy_fe_read_ber(struct dvb_frontend* fe, u32* ber) > return 0; > } > > -static int dvb_dummy_fe_read_signal_strength(struct dvb_frontend* fe, u16* strength) > +static int > +dvb_dummy_fe_read_signal_strength(struct dvb_frontend* fe, u16* strength) The pointer references should be, instead: struct dvb_frontend *fe Btw, I think that this patch conflicts with the one you posted previously. Please don't do that, as it makes harder to apply. If you have multiple patches touching a file, you should place them into a patch series, in order to ensure that they can be applied at the right order. > { > *strength = 0; > return 0; > @@ -102,6 +103,7 @@ static int dvb_dummy_fe_set_voltage(struct dvb_frontend *fe, > static void dvb_dummy_fe_release(struct dvb_frontend* fe) > { > struct dvb_dummy_fe_state* state = fe->demodulator_priv; > + > kfree(state); > } > > @@ -117,7 +119,10 @@ struct dvb_frontend* dvb_dummy_fe_ofdm_attach(void) > return NULL; > > /* create dvb_frontend */ > - memcpy(&state->frontend.ops, &dvb_dummy_fe_ofdm_ops, sizeof(struct dvb_frontend_ops)); > + memcpy(&state->frontend.ops, > + &dvb_dummy_fe_ofdm_ops, > + sizeof(struct dvb_frontend_ops)); > + > state->frontend.demodulator_priv = state; > return &state->frontend; > } > @@ -134,7 +139,10 @@ struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void) > return NULL; > > /* create dvb_frontend */ > - memcpy(&state->frontend.ops, &dvb_dummy_fe_qpsk_ops, sizeof(struct dvb_frontend_ops)); > + memcpy(&state->frontend.ops, > + &dvb_dummy_fe_qpsk_ops, > + sizeof(struct dvb_frontend_ops)); > + > state->frontend.demodulator_priv = state; > return &state->frontend; > } > @@ -151,7 +159,10 @@ struct dvb_frontend *dvb_dummy_fe_qam_attach(void) > return NULL; > > /* create dvb_frontend */ > - memcpy(&state->frontend.ops, &dvb_dummy_fe_qam_ops, sizeof(struct dvb_frontend_ops)); > + memcpy(&state->frontend.ops, > + &dvb_dummy_fe_qam_ops, > + sizeof(struct dvb_frontend_ops)); > + > state->frontend.demodulator_priv = state; > return &state->frontend; > } > @@ -163,13 +174,21 @@ static const struct dvb_frontend_ops dvb_dummy_fe_ofdm_ops = { > .frequency_min_hz = 0, > .frequency_max_hz = 863250 * kHz, > .frequency_stepsize_hz = 62500, > - .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | > - FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 | > - FE_CAN_FEC_7_8 | FE_CAN_FEC_8_9 | FE_CAN_FEC_AUTO | > - FE_CAN_QAM_16 | FE_CAN_QAM_64 | FE_CAN_QAM_AUTO | > - FE_CAN_TRANSMISSION_MODE_AUTO | > - FE_CAN_GUARD_INTERVAL_AUTO | > - FE_CAN_HIERARCHY_AUTO, > + .caps = FE_CAN_FEC_1_2 | > + FE_CAN_FEC_2_3 | > + FE_CAN_FEC_3_4 | > + FE_CAN_FEC_4_5 | > + FE_CAN_FEC_5_6 | > + FE_CAN_FEC_6_7 | > + FE_CAN_FEC_7_8 | > + FE_CAN_FEC_8_9 | > + FE_CAN_FEC_AUTO | > + FE_CAN_QAM_16 | > + FE_CAN_QAM_64 | > + FE_CAN_QAM_AUTO | > + FE_CAN_TRANSMISSION_MODE_AUTO | > + FE_CAN_GUARD_INTERVAL_AUTO | > + FE_CAN_HIERARCHY_AUTO, > }, > > .release = dvb_dummy_fe_release, > @@ -194,11 +213,16 @@ static const struct dvb_frontend_ops dvb_dummy_fe_qam_ops = { > .frequency_min_hz = 51 * MHz, > .frequency_max_hz = 858 * MHz, > .frequency_stepsize_hz = 62500, > - .symbol_rate_min = (57840000 / 2) / 64, /* SACLK/64 == (XIN/2)/64 */ > + /* symbol_rate_min: SACLK/64 == (XIN/2)/64 */ > + .symbol_rate_min = (57840000 / 2) / 64, > .symbol_rate_max = (57840000 / 2) / 4, /* SACLK/4 */ > - .caps = FE_CAN_QAM_16 | FE_CAN_QAM_32 | FE_CAN_QAM_64 | > - FE_CAN_QAM_128 | FE_CAN_QAM_256 | > - FE_CAN_FEC_AUTO | FE_CAN_INVERSION_AUTO > + .caps = FE_CAN_QAM_16 | > + FE_CAN_QAM_32 | > + FE_CAN_QAM_64 | > + FE_CAN_QAM_128 | > + FE_CAN_QAM_256 | > + FE_CAN_FEC_AUTO | > + FE_CAN_INVERSION_AUTO > }, > > .release = dvb_dummy_fe_release, > @@ -227,8 +251,12 @@ static const struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops = { > .symbol_rate_min = 1000000, > .symbol_rate_max = 45000000, > .caps = FE_CAN_INVERSION_AUTO | > - FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | > - FE_CAN_FEC_5_6 | FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO | > + FE_CAN_FEC_1_2 | > + FE_CAN_FEC_2_3 | > + FE_CAN_FEC_3_4 | > + FE_CAN_FEC_5_6 | > + FE_CAN_FEC_7_8 | > + FE_CAN_FEC_AUTO | > FE_CAN_QPSK > }, > Cheers, Mauro