From patchwork Wed Nov 20 08:33:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13880870 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AC77848C for ; Wed, 20 Nov 2024 08:34:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091651; cv=none; b=bRUzDnR4bLoNEX/NGZ75MhSo9iDefDGzLonI4ZFNcMS6Y+k9q/e84FBkeHHFezwnVjkzlqMZ5TvrZAg1xcFYOXz1MMVV2f43cmTbg/kSJ1RgzVgteTMnjlFugmhL7g/6O9ROVg8a4khHN22HIS1DwzwT2jTglgFdw3XJtpaiUK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091651; c=relaxed/simple; bh=p5wNypndlNtZ9iYw46NAdmF91h1AuzQSfvow7/G4AlY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QWLiI+JAFgCpbpu7aGsDrBUcrKUaXi3mv5ED6TnL62efYoKQcnaddbKm/BCcNTNtJ5ib+z0+3x2MNv4svBwr7itTI/bMEXdIDj9+t3g2qeQjBHIRpfFcTzW0xp5ex64lH3W8y+YA2zJeXE18O6O09pAj6Y1wXcw5o1vfpqxa7/Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=eJ36Z6k0; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="eJ36Z6k0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=k1; bh=flniR+Y5Awg7qv7rHZn0LlVf+5Q eXyXgrD4+/TW/z2o=; b=eJ36Z6k06n+h+aiqX/i9U/JX+b++3B9dvrDDvFxbBMb ehHlYj5M6X0y+kKgiOF5DxRTwRAt7x2qfpGo4r/27bHPtKHvtZ0kxjefuWYYVr+o Ykf38wvu/87LyUa0f1nSWGK50esfUksBnMXoTrXxv31jwzdS0+GKq/WbY9CPNCSY tYx4qeN7/zC96E2U9MYItWZbaUH12QkYLiQGvao/Dhhbtc6Xgv68PtZ6a0WrOZXd hCwpN14FQ9wx2NTspTKFMIONUp7kmXKGvxlmGaXbc7/Qg5nSdXSbj7JOfJWsHKvE HuQHGNbEy0X0E/dS9HtsQczaMOOOEOTe9aV/Sy2D88Q== Received: (qmail 832337 invoked from network); 20 Nov 2024 09:34:05 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 20 Nov 2024 09:34:05 +0100 X-UD-Smtp-Session: l3s3148p1@bXw5A1QnzrIgAwDPXxznANR4Jedc6XSv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , =?utf-8?q?Carsten_Spie?= =?utf-8?q?=C3=9F?= , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH 3/3] hwmon: (isl28022) apply coding style to module init/exit Date: Wed, 20 Nov 2024 09:33:52 +0100 Message-ID: <20241120083349.22226-8-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> References: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Function declarations can be in one line. module_init|exit macros should be tied to the function. Signed-off-by: Wolfram Sang --- drivers/hwmon/isl28022.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/hwmon/isl28022.c b/drivers/hwmon/isl28022.c index f9edcfd164c2..7748f6b8a534 100644 --- a/drivers/hwmon/isl28022.c +++ b/drivers/hwmon/isl28022.c @@ -506,8 +506,7 @@ static struct i2c_driver isl28022_driver = { .id_table = isl28022_ids, }; -static int __init -isl28022_init(void) +static int __init isl28022_init(void) { int err; @@ -519,15 +518,13 @@ isl28022_init(void) debugfs_remove_recursive(isl28022_debugfs_root); return err; } +module_init(isl28022_init); -static void __exit -isl28022_exit(void) +static void __exit isl28022_exit(void) { i2c_del_driver(&isl28022_driver); debugfs_remove_recursive(isl28022_debugfs_root); } - -module_init(isl28022_init); module_exit(isl28022_exit); MODULE_AUTHOR("Carsten Spieß ");