From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 3869143DA59 for ; Mon, 11 May 2026 17:34:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778520854; cv=none; b=nkgwkuv60dfcYHMEQnIdbA6B8U2CCOzfkievGhDMwJ/E5VOH0Gp7IYH33esTgUmpM0XWtC1Dw5tBHVLVx+ays5S8ZyugB4Lck+iBIadbhf/Un/m4NXsPfb5jKKy+c5mqXHXh5jTIUkTVT8q1r7dAyjBTQ2H2naWi+VcNwc3BLGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778520854; c=relaxed/simple; bh=WE8kW0jY5beb+gKYFSODmXqBpW2AxgifUGAeY95GTE8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VKbUdeSj/Vrqe92WqSxIerxRgG4eMKLSf4rk97A3aMenMUwQTzJctLHJfgTgTiAJ656Nl0ha/prApZWaz6xVQWWmCHXRfheCvspf5d2x5stt9vBuNlpgKmLTWT+1AF/WdnKt4IaOIn49KCmz5Jm+cSvLrmmMxewx4LtdFgGVosg= 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=ZR6OUIyT; arc=none smtp.client-ip=209.85.216.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZR6OUIyT" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-368977e33b1so507811a91.1 for ; Mon, 11 May 2026 10:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778520851; x=1779125651; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dY6yOr8ZvnEqoBzV9mr0/n1qGN9lRPP9EyteQ/+vCiY=; b=ZR6OUIyTbDSD3rMcZY7KR3id2jZA5eajP4JJ7a/FYqwRB8bgriPfudaKU72KEe8utC t8vKmnhzZ25f+owLJ2DAixIHb3sgEjfbY/SaBmdlmKsewfi0mixzDLDZo3q0dvDzpVUG by8cTSTSvL6pWOpG2evbYuLw9FmUyjq1sRj1eUUPvS6NbdcZGwglsg7YYD5/uDp4jdyg 3sVybF3BICYLBQJecsLYLORCufcLQcWSYEIrkEbvWiudaLIdVfKDgzTsDE8+VZFqHJK9 Cn4YQrous6hu2EIlgb3DMBZlIQUWoLm5u4xKJQTOP666itIvhelUtie6jZMUia5r46sx Cwaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778520851; x=1779125651; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dY6yOr8ZvnEqoBzV9mr0/n1qGN9lRPP9EyteQ/+vCiY=; b=bBTUrnWoKe107oVe/MK2b9Jhr5jmDByeLfnPrSps4NAE6paQ2oOhef1QXC8BqUWbbV MwAwOZ/CaUIhNTcBMU+AlDNZxAxfmtV07tU2xml0RzmGobcgcOZF1lEX5CXc7nvjFMqp ZUsCdb6B1Qf4u5HUUS5a+m4hfjFBQxQ9mXtr4AEYMxJxtO4QgPobcibvUvvt8KYW9tPl xTCDvAMRzCb4CzDilAL/CtzmzjcqKKLuMacWIW2x0+erxIStsvtx3kl/6jubFsZ3JJFW vyXdS9ep4OUzC7nagJqY+pJwZvLhApJse9mpeY21cDSSRY7W4PCE8PFF4WwLpXOMANgJ 1Ylg== X-Forwarded-Encrypted: i=1; AFNElJ+QaC68ez2eoQQWNvu3u5X5ioOmpTVxyQDrDmX7pbmIM3D7r/pBZ/jQC359ShCMhKB1lUo2ZNxdACkeK6A=@vger.kernel.org X-Gm-Message-State: AOJu0YyVq0jYwk1n72v0dat+PyTW45BqElPCNmaP0HrOpqLnafRwaREs aPbs2ZYq0roumxslGyYwC+KYCC8RZNjncg9UxG7Cz9U8YeBhE52O5/CQ X-Gm-Gg: Acq92OGVXCAjyArj3qljEmCXqv4/EmPc6HfzsKdgoKmbVWVUCRq0HkEIdDVa1P7c0/d g9DBSYvRx8+VXgUrnZqzCu3UaPyW+i8xFa8ZQIHBOMnE71MSol5UdZCbNGvQ+yLrMkVmIZjjw5Y 4PpHgJyRfe0igPT844fyUXc8HSAkrFVjeZaTVEcEFY+HEefEbh2tnJEVPbhDYYR+Y3hx8NSgozG 9+UVGsI0NI1Dh/FKSEpSvPuMudV4WuZZ6z0jKd1sTRgQuoAq9Jq7CQqWVZUW169r2UYOsqAbhMY uvCH6OZbbL4n24bsC02Gu01o1tNJyRLrisvMt1Ng98aGqMMCv/ocDrLLPu2HRilK+0Rc/EOronO zbCfMTVquh9+S1rbGlnmwun9rejwB9sSYh8YdRtytiZVAZkYXL14YSI22gbgWKPTcCOdjZOjUHg Sc33nSve4NolsGk7//vaSMRwFDywvgMD6tH19pHn+tok3shbY= X-Received: by 2002:a17:90b:6c6:b0:366:1d5f:885 with SMTP id 98e67ed59e1d1-3661d5f0a77mr20158800a91.24.1778520851456; Mon, 11 May 2026 10:34:11 -0700 (PDT) Received: from Strong10mede.domain.name ([122.161.50.8]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-367d65f116csm8058776a91.15.2026.05.11.10.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2026 10:34:11 -0700 (PDT) From: Mayur Kumar To: rafael@kernel.org, daniel.lezcano@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mayur Kumar Subject: [PATCH] thermal: core: fix permissions and cleanup style Date: Mon, 11 May 2026 23:03:59 +0530 Message-Id: <20260511173359.212865-1-kmayur809@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert symbolic permissions to octal 0644 in thermal_core.c. Also, re-align function parameters for for_each_thermal_* helpers to match kernel coding style. Note: checkpatch.pl reports an error regarding brace placement on lines 707, 725, and 743, but these are false positives caused by the complex function pointer arguments in the definitions. Signed-off-by: Mayur Kumar --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 2f4e2dc46b8..c44bc084064 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -877,7 +877,7 @@ static int thermal_bind_cdev_to_trip(struct thermal_zone_device *tz, "cdev%d_weight", dev->id); sysfs_attr_init(&dev->weight_attr.attr); dev->weight_attr.attr.name = dev->weight_attr_name; - dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; + dev->weight_attr.attr.mode = 0644; dev->weight_attr.show = weight_show; dev->weight_attr.store = weight_store; result = device_create_file(&tz->device, &dev->weight_attr); -- 2.34.1