From patchwork Sun Mar 3 19:20:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bergh X-Patchwork-Id: 209337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1059218dyc; Sun, 3 Mar 2024 11:22:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWyrS1UQlQWFxzoxncDXDweVjfNvK+8JWimRR88pGtcwDgEhbULdk2oBk/o6QiSPLpR4X3tUL6PGUmyp9vrP9cjhVHi4Q== X-Google-Smtp-Source: AGHT+IHpcHXxi8XKnzfaTqr/cDo80iXK2O3iiniLZj0U+3ZLD4o4KPft+reGOZn4qSPPzRS3j1Dw X-Received: by 2002:a05:622a:244:b0:42e:f434:d8f3 with SMTP id c4-20020a05622a024400b0042ef434d8f3mr190806qtx.19.1709493741018; Sun, 03 Mar 2024 11:22:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709493741; cv=pass; d=google.com; s=arc-20160816; b=NbmMPmSA+CaZL2B3+u9fld2a32eercZ7q+v45M4oUwA/doflulmyXpGndQk/6v+9Z6 hT0rmMipucgsP71hrlzcJyh0mfQuxwodwIh7RONFv0mvjOxWjAvNJmMtw+0Wvlm70lOV GP9AnGw1dLB1A+L0LtlbEr9xmnb1DIUKKIGp8h66CjuFjrkIm8q2dOmUHORjn+ZTw8bJ 5339U+KTnxyWDC8p50KtDEPshynImbhpQtS8H1UBKe1rjBmYz1atGi3p90z8uiWI08o2 /1zvON2T7+Ak4d0H0Q2xX2uJ9s0WyO7pM2Ysno0AKljH8ucJG9XmVJ3RltnnxXdnKZlJ P8PA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DrOvp9WwUThyk7z9CwJba4kk8ujpOBp1PFvZQuMIxGQ=; fh=1FcqKcGT1PyuJlbDuluS9tUGoOxQO9LDzkCU1gdLsUc=; b=WivogWQ9jEfoKTC3mrD0Q9rPhbAbtXPZHwsJZWA1osbiHlHJmoiFVs8EXR9tp4k/qS 7Y/Gy8jT/GPQ69r/GoNEVqr0BELYK1eo2rsV4yPjDK+ig9C4V2UJoWIjTxyGwjJ+0bjf m+AKRNXcgh8PPNU8M3nGwJy/7jqLg5cEYU9f94I0BqLtQWL865qGoKSaHkj//4jNRjG7 mkcIfBnPd4PmHRrrnU0uhx4SDVNwOb19cI/pDTRm74iB9i5QYKpWeA9YEQD7cEH6FxHF LuIp4BCpnUTyPT4oHtV9xR2OiqsTtrSCsRQRnZbrBZF2s6vgpOJO7eFtcfRwa/EyJa8f 5e1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NAwSjRjf; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89873-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89873-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a19-20020ac87213000000b0042e7b1eb6a4si7629272qtp.643.2024.03.03.11.22.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 11:22:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89873-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NAwSjRjf; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89873-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89873-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 946721C2114D for ; Sun, 3 Mar 2024 19:22:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4F417BAF4; Sun, 3 Mar 2024 19:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NAwSjRjf" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1496D7A725; Sun, 3 Mar 2024 19:21:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709493664; cv=none; b=gBAf5ZUHZm9MoOjidNVAsQBqm/mF3fH7D+3WcjS2uRaBUi25bqHI1TJUD5Udyg2h7inJBhViFs4ftPNdoXufskQG+tiRFdAnCtlntnzWzzNnYXlq7c36Qu3bO2b0OW4u0QY2IZT4FGFpEqIDMThrQUZIibExJfD1lEg/YHGrAUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709493664; c=relaxed/simple; bh=+pDeDqWYQHPbRMFnvRN1azOZl2OlaoukQDC/kgYafw0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=t1kxnxeKCBDH38CtzVVPW0OER8sbFJ4XsusCo5/bXBxFhAhPgzLM5rXSTIw8kdFiEM82L1jCV410qgcwyzEPmiRbptWi796Co1kZI6r+Ga1AXJdTxVgzSXh5DWpvBq7aCYBx7HvwsI7gVvK0Dc6s1l6MGw3L/bu0zUQrfu9GsCs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NAwSjRjf; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2d094bc2244so54199501fa.1; Sun, 03 Mar 2024 11:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709493660; x=1710098460; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DrOvp9WwUThyk7z9CwJba4kk8ujpOBp1PFvZQuMIxGQ=; b=NAwSjRjfi9txCTPaY72l84eGXKOEF+eKGW39nlk2HpPpCEdYyYhw/tHRSDw4QUZUoO bG/OuEmFKc/yBh+gtbb+11RyDVcHaPO3vNc280nw21DltTO33BAMn9fzWTD4WxMgXVVg RE2bCGD6oDeaudqeL+IanSP3rfclB7xhj23WsFBy+eUyHsXRhcBDgN/D05Cx+Rn7LKJl UK2OYeV8sArMqr09kU9WrbZrNtSdH39LvWXryrae7Ok7IfAo1uVdsHFPOAyKy/X4F43A 7YukIgwckRK+boudyTtBFBadHl0SyseMm7HEldiBwkF3coIJ2rTedGNXR5Hzh7xcHa9u mzAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709493660; x=1710098460; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DrOvp9WwUThyk7z9CwJba4kk8ujpOBp1PFvZQuMIxGQ=; b=DbA2k92KhhX+AdRhlxSSHHka7dOiSRWYI+ZxOUE7leH/2Iifxs5pqsSh/XrLwmT5qg 5Ydy7UPMGqi4DTPuITJTz+qjhqahK6tQ1ezxSMM0wjKsPexVc1MpPngPkOJ6Q7r/UttO CWGm3GjiHhw3y/jiRKo3ZWgCtGVuJPxuRdUn3fCHKEzzfEKPVKwuaapwF7Mn+lHQ0nRV vKo+oOjw1Zemks0XrV35O6sN55+5LJLRrcizySB+U2hH1I8O+QK3LAUEB01kIarhFC3f dEolEPkrB534NVRusvYPs8HLiriPh2Ef8Y5JOsEQGj9uzN+XjDF5vYCOyf4z+TrDYLKv 6Nbw== X-Forwarded-Encrypted: i=1; AJvYcCW2RGnCQb98zXRI0z5RP4oWDuHQLqNlOHCXtJtB5Ia/NnwaeHSybsvp1a6pDqd2bH5DoADc0cO9DVrefLgq/1d6asMI/DNNOIh0kNK9ncwlDt7WjMm1o1LhDvxhl2BuGaoe2yAHKhvlycg= X-Gm-Message-State: AOJu0Yx8RqMx1M8wma4ugmEQ5yRSsXrupQ8P3tF3/Hyu7tgTuibNS9hh YY87qQAvXGDDqwTgY5aWrJeAolgdCq+8ntsKMT70RUXZR8amtNn0 X-Received: by 2002:a2e:88d6:0:b0:2d2:3e88:7c4f with SMTP id a22-20020a2e88d6000000b002d23e887c4fmr4853130ljk.43.1709493660194; Sun, 03 Mar 2024 11:21:00 -0800 (PST) Received: from localhost.localdomain (c83-255-24-248.bredband.tele2.se. [83.255.24.248]) by smtp.googlemail.com with ESMTPSA id y10-20020a2e9d4a000000b002d3c466adc7sm68438ljj.15.2024.03.03.11.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 11:20:59 -0800 (PST) From: Jonathan Bergh To: mchehab@kernel.org Cc: mcgrof@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Bergh Subject: [PATCH 4/9] staging: media: av7110: Fix formatting of pointers to meet coding style guidelines Date: Sun, 3 Mar 2024 20:20:35 +0100 Message-Id: <20240303192040.8116-5-bergh.jonathan@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240303192040.8116-1-bergh.jonathan@gmail.com> References: <20240303192040.8116-1-bergh.jonathan@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792534108939692225 X-GMAIL-MSGID: 1792534108939692225 This patch fixes the following code formatting issue: * Ensure "foo* bar" is formatted as "foo *bar" as per code style rules Signed-off-by: Jonathan Bergh --- drivers/staging/media/av7110/sp8870.c | 60 +++++++++++++-------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/media/av7110/sp8870.c b/drivers/staging/media/av7110/sp8870.c index 1f6c02744b6c..5857fc8b0962 100644 --- a/drivers/staging/media/av7110/sp8870.c +++ b/drivers/staging/media/av7110/sp8870.c @@ -28,9 +28,9 @@ struct sp8870_state { - struct i2c_adapter* i2c; + struct i2c_adapter *i2c; - const struct sp8870_config* config; + const struct sp8870_config *config; struct dvb_frontend frontend; @@ -50,7 +50,7 @@ static int debug; /* starting point for firmware in file 'Sc_main.mc' */ #define SP8870_FIRMWARE_OFFSET 0x0A -static int sp8870_writereg(struct sp8870_state* state, u16 reg, u16 data) +static int sp8870_writereg(struct sp8870_state *state, u16 reg, u16 data) { u8 buf [] = { reg >> 8, reg & 0xff, data >> 8, data & 0xff }; struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 4 }; @@ -64,7 +64,7 @@ static int sp8870_writereg(struct sp8870_state* state, u16 reg, u16 data) return 0; } -static int sp8870_readreg(struct sp8870_state* state, u16 reg) +static int sp8870_readreg(struct sp8870_state *state, u16 reg) { int ret; u8 b0 [] = { reg >> 8 , reg & 0xff }; @@ -82,7 +82,7 @@ static int sp8870_readreg(struct sp8870_state* state, u16 reg) return (b1[0] << 8 | b1[1]); } -static int sp8870_firmware_upload(struct sp8870_state* state, const struct firmware *fw) +static int sp8870_firmware_upload(struct sp8870_state *state, const struct firmware *fw) { struct i2c_msg msg; const char *fw_buf = fw->data; @@ -129,7 +129,7 @@ static int sp8870_firmware_upload(struct sp8870_state* state, const struct firmw return 0; }; -static void sp8870_microcontroller_stop(struct sp8870_state* state) +static void sp8870_microcontroller_stop(struct sp8870_state *state) { sp8870_writereg(state, 0x0F08, 0x000); sp8870_writereg(state, 0x0F09, 0x000); @@ -138,7 +138,7 @@ static void sp8870_microcontroller_stop(struct sp8870_state* state) sp8870_writereg(state, 0x0F00, 0x000); } -static void sp8870_microcontroller_start(struct sp8870_state* state) +static void sp8870_microcontroller_start(struct sp8870_state *state) { sp8870_writereg(state, 0x0F08, 0x000); sp8870_writereg(state, 0x0F09, 0x000); @@ -150,7 +150,7 @@ static void sp8870_microcontroller_start(struct sp8870_state* state) sp8870_readreg(state, 0x0D01); } -static int sp8870_read_data_valid_signal(struct sp8870_state* state) +static int sp8870_read_data_valid_signal(struct sp8870_state *state) { return (sp8870_readreg(state, 0x0D02) > 0); } @@ -226,7 +226,7 @@ static int configure_reg0xc05(struct dtv_frontend_properties *p, u16 *reg0xc05) return 0; } -static int sp8870_wake_up(struct sp8870_state* state) +static int sp8870_wake_up(struct sp8870_state *state) { // enable TS output and interface pins return sp8870_writereg(state, 0xC18, 0x00D); @@ -235,7 +235,7 @@ static int sp8870_wake_up(struct sp8870_state* state) static int sp8870_set_frontend_parameters(struct dvb_frontend *fe) { struct dtv_frontend_properties *p = &fe->dtv_property_cache; - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; int err; u16 reg0xc05; @@ -291,9 +291,9 @@ static int sp8870_set_frontend_parameters(struct dvb_frontend *fe) return 0; } -static int sp8870_init(struct dvb_frontend* fe) +static int sp8870_init(struct dvb_frontend *fe) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; const struct firmware *fw = NULL; sp8870_wake_up(state); @@ -344,7 +344,7 @@ static int sp8870_init(struct dvb_frontend* fe) static int sp8870_read_status(struct dvb_frontend *fe, enum fe_status *fe_status) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; int status; int signal; @@ -368,9 +368,9 @@ static int sp8870_read_status(struct dvb_frontend *fe, return 0; } -static int sp8870_read_ber(struct dvb_frontend* fe, u32 * ber) +static int sp8870_read_ber(struct dvb_frontend *fe, u32 *ber) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; int ret; u32 tmp; @@ -395,9 +395,9 @@ static int sp8870_read_ber(struct dvb_frontend* fe, u32 * ber) return 0; } -static int sp8870_read_signal_strength(struct dvb_frontend* fe, u16 * signal) +static int sp8870_read_signal_strength(struct dvb_frontend *fe, u16 *signal) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; int ret; u16 tmp; @@ -421,9 +421,9 @@ static int sp8870_read_signal_strength(struct dvb_frontend* fe, u16 * signal) return 0; } -static int sp8870_read_uncorrected_blocks(struct dvb_frontend* fe, u32* ublocks) +static int sp8870_read_uncorrected_blocks(struct dvb_frontend *fe, u32 *ublocks) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; int ret; *ublocks = 0; @@ -453,7 +453,7 @@ static int switches; static int sp8870_set_frontend(struct dvb_frontend *fe) { struct dtv_frontend_properties *p = &fe->dtv_property_cache; - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; /* The firmware of the sp8870 sometimes locks up after setting frontend parameters. @@ -509,15 +509,15 @@ static int sp8870_set_frontend(struct dvb_frontend *fe) return 0; } -static int sp8870_sleep(struct dvb_frontend* fe) +static int sp8870_sleep(struct dvb_frontend *fe) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; // tristate TS output and disable interface pins return sp8870_writereg(state, 0xC18, 0x000); } -static int sp8870_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings* fesettings) +static int sp8870_get_tune_settings(struct dvb_frontend *fe, struct dvb_frontend_tune_settings *fesettings) { fesettings->min_delay_ms = 350; fesettings->step_size = 0; @@ -525,9 +525,9 @@ static int sp8870_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend return 0; } -static int sp8870_i2c_gate_ctrl(struct dvb_frontend* fe, int enable) +static int sp8870_i2c_gate_ctrl(struct dvb_frontend *fe, int enable) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; if (enable) return sp8870_writereg(state, 0x206, 0x001); @@ -535,18 +535,18 @@ static int sp8870_i2c_gate_ctrl(struct dvb_frontend* fe, int enable) return sp8870_writereg(state, 0x206, 0x000); } -static void sp8870_release(struct dvb_frontend* fe) +static void sp8870_release(struct dvb_frontend *fe) { - struct sp8870_state* state = fe->demodulator_priv; + struct sp8870_state *state = fe->demodulator_priv; kfree(state); } static const struct dvb_frontend_ops sp8870_ops; -struct dvb_frontend* sp8870_attach(const struct sp8870_config* config, - struct i2c_adapter* i2c) +struct dvb_frontend *sp8870_attach(const struct sp8870_config *config, + struct i2c_adapter *i2c) { - struct sp8870_state* state = NULL; + struct sp8870_state *state = NULL; /* allocate memory for the internal state */ state = kzalloc(sizeof(struct sp8870_state), GFP_KERNEL);