Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 34E931A83E7 for ; Thu, 17 Apr 2025 00:32:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744849975; cv=none; b=F72bZKRdPe2TZytwSFVfmOZZOTynZPAIQK9IhrLySEeaiDbHXmTSCDcQ6baTxMD/W9ngxH1TrPOycsN7A9ls4WGzJUy+QHePZVLaNaR0B644QzcFAdXpLaI0w1Ld9WkP5SxUOpgXbY+9FyLlZYIyzcm/E+sfMNR9lTFY4eJuUiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744849975; c=relaxed/simple; bh=8okjKapEXL0pq/38EBFIL8OiF3bafOD9XDda7A5fthI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ho7clJ+5REVBpJfcGHBioUdh4/eqLhAryt0OlaeQ2Vi1H2tkptiI9IzgHZVLjdPTNtGEBGoRGmjn9Ny0Rw1AELRQGHLVUwdLTty5XC+GXG8oHBeoa5UE5RuSmJgjVszXhcwIzPWv4I4w5KmwXdf4EtknRM9NWbODUKH0+X03KRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=neverthere.org; spf=pass smtp.mailfrom=neverthere.org; dkim=pass (2048-bit key) header.d=neverthere.org header.i=@neverthere.org header.b=WXIv5gb8; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=neverthere.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=neverthere.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=neverthere.org header.i=@neverthere.org header.b="WXIv5gb8" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2254e0b4b79so3279455ad.2 for ; Wed, 16 Apr 2025 17:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverthere.org; s=google; t=1744849973; x=1745454773; darn=lists.linux.dev; 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=aieSX3scPJoA/XHoJW1shS4zGjo6f5zSBOJN+BqU2pE=; b=WXIv5gb8slbgJrnmBIWkl1Gzw9nAnfox8mzuXrmF0kj0TvXj3Pn1rceFrdpK/CdhiK oa9s4Fm3jKDGIcX4QzOzmUlOI6PZtk8DrDoigzG5ZPP0ssUHuCNsbfQL83Q/q03ZAJtX kQ7FGYbXSdvsTcuEfgygOA4x5FL/MTW9K5QLbOrz/S/GHuY+Jpo5BHwgr8HYHeLGVs9p Z3+b00VpVk9Eh6aYhqtq/Fxqg7K4eXWXGfh2/qI5jWcLvxebPWvKBqBS9KE6cq8rcxqJ WfCIL3stMgeVcF+N3J/7UEP0Pz6TBKuzn7SotzyLUDbVaKQFmikn/gaNjBoU9jUKsVIW FU4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744849973; x=1745454773; 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=aieSX3scPJoA/XHoJW1shS4zGjo6f5zSBOJN+BqU2pE=; b=MtUgnXm4WwNoagDP9K9F5scBailr9lkx52B85mqGUI27hxiZA6ElFHAAebsak/4h1y MR4ZtLamlzc1jM2tUqufWyw2LpyWBL0kLCZBtUC7K13FGYajQoPkkDEjv71FVQBbDUgP gc5OUYGKA12xdzX0kbPncnNgSmPze5DbElaMgYNt5GhgztEKLYVr4WJ7wn9dDp/SMrgM QNtCxeYJdMNjcYfthxX9i80/rpUz45qLIpg4K5lCmw87y6tsNiz1VTemN6kuz4ABOWxe yQwwOQOdFmSQcp33o28MFnfry3YGECNO+kI+YmEObjc319QwJKcFEeIvcBb4ubucu00m ubrQ== X-Gm-Message-State: AOJu0YzGPzezt1p+lwi/Mg567o6p5iIlMHH9slU1NajBttQhRLEMs3Lv KexH1URwrio70L0tRPrOITQCxSu2zLWn6eKhV7RwOOX6K3a4z6RvMwxGTbLsQwfiHbOuj9i2W1U = X-Gm-Gg: ASbGncv+dWA54pjBKw1EVoIDPT8JR2sVAOAgvIE32LQsQ9EIHwg8ZpdjQgkmR+7YSxo FFNgvWMDTfnlQEUH85fOBphoj6AEMitvj+I60DpBbA1fSa1ho899jZfi7x3jKh+JYC1TKvtZU/I HnQL/6SW0vdXP35fVsHS12vup192qs1tAvXt8pd263L7iHl2WfO+KE3/kYf+2oN+PV+KFDH7EOx YqRBAD/uF3l3/8e2dHX/zN7uD2pjKXGtmZ2qo3u0gZGLn14MqN0JcdznMCG9T8s0OIc56RCsy0p u9oEB/TpSz9F5nkNhMuJOtO/mLZpdiSHjpEEYh25CR5FQjQ1mnVUY6YFukqTWdhXgj8WiyJ5oFs D14Cgk9hSBq9kD9Hr X-Google-Smtp-Source: AGHT+IHkqC8KVVYFFKRBRSh3k2qVgnhji73OjHXWe1evH3Cwzt+CMaEhigvo0U455wmM1IN8eaY0hQ== X-Received: by 2002:a17:902:cf0f:b0:224:376:7a21 with SMTP id d9443c01a7336-22c359742c4mr62912015ad.42.1744849973376; Wed, 16 Apr 2025 17:32:53 -0700 (PDT) Received: from tiamat (c-69-181-214-135.hsd1.ca.comcast.net. [69.181.214.135]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22c33fc43d5sm20865225ad.162.2025.04.16.17.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 17:32:53 -0700 (PDT) From: Michael Rubin To: gregkh@linuxfoundation.org, dpenkler@gmail.com, dan.carpenter@linaro.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Rubin Subject: [PATCH v3 04/18] staging: gpib: cb7210: struct gpib_interface Date: Thu, 17 Apr 2025 00:32:32 +0000 Message-ID: <20250417003246.84445-5-matchstick@neverthere.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250417003246.84445-1-matchstick@neverthere.org> References: <20250417003246.84445-1-matchstick@neverthere.org> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Using Linux code style for struct gpib_interface. Adhering to Linux code style. Reported by checkpatch.pl In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef. Signed-off-by: Michael Rubin --- drivers/staging/gpib/cb7210/cb7210.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/gpib/cb7210/cb7210.c b/drivers/staging/gpib/cb7210/cb7210.c index 9e26fea43fb9..08a50d1428ab 100644 --- a/drivers/staging/gpib/cb7210/cb7210.c +++ b/drivers/staging/gpib/cb7210/cb7210.c @@ -686,7 +686,7 @@ static void cb7210_return_to_local(struct gpib_board *board) write_byte(nec_priv, AUX_RTL, AUXMR); } -static gpib_interface_t cb_pci_unaccel_interface = { +static struct gpib_interface cb_pci_unaccel_interface = { .name = "cbi_pci_unaccel", .attach = cb_pci_attach, .detach = cb_pci_detach, @@ -714,7 +714,7 @@ static gpib_interface_t cb_pci_unaccel_interface = { .return_to_local = cb7210_return_to_local, }; -static gpib_interface_t cb_pci_accel_interface = { +static struct gpib_interface cb_pci_accel_interface = { .name = "cbi_pci_accel", .attach = cb_pci_attach, .detach = cb_pci_detach, @@ -742,7 +742,7 @@ static gpib_interface_t cb_pci_accel_interface = { .return_to_local = cb7210_return_to_local, }; -static gpib_interface_t cb_pci_interface = { +static struct gpib_interface cb_pci_interface = { .name = "cbi_pci", .attach = cb_pci_attach, .detach = cb_pci_detach, @@ -769,7 +769,7 @@ static gpib_interface_t cb_pci_interface = { .return_to_local = cb7210_return_to_local, }; -static gpib_interface_t cb_isa_unaccel_interface = { +static struct gpib_interface cb_isa_unaccel_interface = { .name = "cbi_isa_unaccel", .attach = cb_isa_attach, .detach = cb_isa_detach, @@ -797,7 +797,7 @@ static gpib_interface_t cb_isa_unaccel_interface = { .return_to_local = cb7210_return_to_local, }; -static gpib_interface_t cb_isa_interface = { +static struct gpib_interface cb_isa_interface = { .name = "cbi_isa", .attach = cb_isa_attach, .detach = cb_isa_detach, @@ -824,7 +824,7 @@ static gpib_interface_t cb_isa_interface = { .return_to_local = cb7210_return_to_local, }; -static gpib_interface_t cb_isa_accel_interface = { +static struct gpib_interface cb_isa_accel_interface = { .name = "cbi_isa_accel", .attach = cb_isa_attach, .detach = cb_isa_detach, @@ -1334,7 +1334,7 @@ static void cb_pcmcia_cleanup_module(void) pcmcia_unregister_driver(&cb_gpib_cs_driver); } -static gpib_interface_t cb_pcmcia_unaccel_interface = { +static struct gpib_interface cb_pcmcia_unaccel_interface = { .name = "cbi_pcmcia_unaccel", .attach = cb_pcmcia_attach, .detach = cb_pcmcia_detach, @@ -1362,7 +1362,7 @@ static gpib_interface_t cb_pcmcia_unaccel_interface = { .return_to_local = cb7210_return_to_local, }; -static gpib_interface_t cb_pcmcia_interface = { +static struct gpib_interface cb_pcmcia_interface = { .name = "cbi_pcmcia", .attach = cb_pcmcia_attach, .detach = cb_pcmcia_detach, @@ -1390,7 +1390,7 @@ static gpib_interface_t cb_pcmcia_interface = { .return_to_local = cb7210_return_to_local, }; -static gpib_interface_t cb_pcmcia_accel_interface = { +static struct gpib_interface cb_pcmcia_accel_interface = { .name = "cbi_pcmcia_accel", .attach = cb_pcmcia_attach, .detach = cb_pcmcia_detach, -- 2.43.0