Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp715819lql; Mon, 11 Mar 2024 15:33:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyZxHxvBN6+C65ju/VAcxFYhpW0eWRSvkshH6ItPW7UfjG0tVDKUXMdyIRe/fXgrXLUtONLgHe8Q34ggSXr67GA/Tj9WdcVh11Nc83DA== X-Google-Smtp-Source: AGHT+IHtHyvhDHJL29WfmPEhC0OZeE90aWpMcx/hHh5n8caRnjH7f7TcZyYho3S3TniBi3JUbYM+ X-Received: by 2002:a50:d7c2:0:b0:567:a740:7172 with SMTP id m2-20020a50d7c2000000b00567a7407172mr4390572edj.41.1710196383908; Mon, 11 Mar 2024 15:33:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710196383; cv=pass; d=google.com; s=arc-20160816; b=ImxmuSByRm2OSq03+ANb73+7OIsujxZ6GNviq6QJ0knv8M5p4AuNpdBw8FYi5nZEmm 0nD8omcpDXIN8FWfdpmnkTIzwKa0EVsX0taK1NUQdA1KEVkhMn5Sarshg+CraM9HpLPt MdeOsHReRHkq8ZFyHr/dkeBS038N5V14cyc+8pLnFfMoRK+/u0OkOoCbkvWRQflIwSZZ l5kptcWqI/z93Yiv+629bh26l0pnnCYnPG4JSHT/xZpxm4bZBBRbv2ZLB4m9J3tap7Lh FMM8HrynitiuNMPTOKgK9U7KI3dopEotRQ7rCjsdpwFICzJPqzB00bCe7QArxIywZ9jB ct0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=CArm0auKmwv8Q1uxyRuXJ0PLf8GkQNTL9Enxue9llQA=; fh=rsk8Qp5fhm247zai0JQPouUx0Fu37/Q1nnpNw/YWPYw=; b=K+FRJcMjZ4LMSvg+Y7Q6LiumrEWzUx9V1Cbig24oIWcLa+v1utJBePDTQSF+JyvDk7 sSlD3/tMsoOeJ7m541P+XzZmo87kwRbO9+WogC7CvQ0nWsh7+81IuhUw0mcM/dB8rKEO kGQKu7K40YGGn8ohRZekOC71BQvdsPfFkEgcuaiIDTqMyajppo1Y7LJ464UiINak+AR4 pvCNkDc3rselLC6ZsulxzrR6dqk2jpfG5wks/3a28/J1mJ3vB0zpTxEPavdyaCg17Cb2 8U112DJi4YVlKEh72nPiKdOvjo4dnXhKXbMafPAWGOVyzP0l61OW+KGZlhxaCungaGUk WrjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=CBzOWzWW; arc=pass (i=1 spf=pass spfdomain=iwanders.net dkim=pass dkdomain=iwanders.net); spf=pass (google.com: domain of linux-kernel+bounces-99616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99616-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f16-20020a0564021e9000b00565afb5af5csi2979612edf.133.2024.03.11.15.33.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 15:33:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=CBzOWzWW; arc=pass (i=1 spf=pass spfdomain=iwanders.net dkim=pass dkdomain=iwanders.net); spf=pass (google.com: domain of linux-kernel+bounces-99616-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99616-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A22CE1F21C54 for ; Mon, 11 Mar 2024 22:33:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 631EE58126; Mon, 11 Mar 2024 22:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iwanders.net header.i=@iwanders.net header.b="CBzOWzWW" Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 E2D58482C1 for ; Mon, 11 Mar 2024 22:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710196374; cv=none; b=F59Z7F97MboQy5RS5WS/4Q3gKt8OBYV1sWAHyWqEnKMKreh3Jui+Ez7xeRSAmsOmUne4nV3ysbJwzS3646yJMgpgB+ujOv2WyQZNdSDeEohGnnTVc0vsZkP2gj3f1XGqx1Yh6v/RoYEcbb2qw2BDFjKzyGAvD22eet7EYuy/Nc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710196374; c=relaxed/simple; bh=vwLn6pPMKhnjkaMcj/WgdNDx63eGUSsPz3XGpaNFawk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=WXoa2YvinUzypZYnfPy2aBwwHrgI2VKrX8seR68YEUZjlpmmQskSNHY8PfaVQMsE8vgjTCm08BH00HNDyFbseiXGI5G8T12aDuout++ixBcCEjMItGcAoDq7h66TIVbdkcGdbSfAcalzIs+qwFNVZhbAAyHeUBn1O+vYPbUynQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iwanders.net; spf=pass smtp.mailfrom=iwanders.net; dkim=pass (1024-bit key) header.d=iwanders.net header.i=@iwanders.net header.b=CBzOWzWW; arc=none smtp.client-ip=209.85.222.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iwanders.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iwanders.net Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-7882e94d408so404805485a.0 for ; Mon, 11 Mar 2024 15:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iwanders.net; s=google; t=1710196372; x=1710801172; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=CArm0auKmwv8Q1uxyRuXJ0PLf8GkQNTL9Enxue9llQA=; b=CBzOWzWW/6z//lsY6fsPIVmmAg+pRQcPz7N4wMC70sBXg5tlcq+1W+fBgiIbPlIdST eflgfFFuxmCZs/wT2EUAAr7lQkC4li4GMHO5BjqFATJfo1mNYr3WBP4vT2QeFTPfKAzC 73hU47t+bwpbzxfts6aJKoVlW0cb+H6e4+Ync= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710196372; x=1710801172; h=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=CArm0auKmwv8Q1uxyRuXJ0PLf8GkQNTL9Enxue9llQA=; b=cDlEIfyMYUAm+9Gs7KDZFF6fTx6JVGr+TiNMyCnFGfQqQL/5wYxYVzya6V6VuFHNvq BJkwpD9jZMf1MNmRrLhtMJt9KtJNY1qM+5k1l6NoptwnskEKhNBmIZcV4q6Bh3XxvIta f2s0Kswpy/FZv17zUEtywDsm9oE6FLoYq7yM/g2H7PmSBfCz/d/h+kDA4h/LxrvNIo5U QJd3CUF+PitFoaIQfKzvnYRfMMRnSisqN3xMOfgf3phi5sFvGT30zWuulCQoGPsU/ZjI G+u9JfC9liYYvzsNRPlLJ4jGH/GRsG8qvpToPCG1ZfLKYTvsKmzQfZ8zjLDevQjlDXc6 U6mg== X-Forwarded-Encrypted: i=1; AJvYcCVRBRbkxspxoTP8kIX9RAJzM2z1wkv+yU0jmviczQvn3LLdR0HJJ7iAWI9UmhTlHG4B/xQ2wK0UYNbgQRAl559Xr6tMZkbTpu6cNjYX X-Gm-Message-State: AOJu0YxNMedXZV+nRbje7l5SyqGK98+3/v1vp7BDoOLwnKlHZB3JBbqa AgOSyyvO5FiX2QjF98HHjb9Udpcmi1iG7M2qhlISIfQnL47pb3PcnuHXaF7WtajCr595AMLFu2l EKNU= X-Received: by 2002:a05:620a:2455:b0:788:25bc:622d with SMTP id h21-20020a05620a245500b0078825bc622dmr11477842qkn.55.1710196371783; Mon, 11 Mar 2024 15:32:51 -0700 (PDT) Received: from eagle.lan (24-246-30-234.cable.teksavvy.com. [24.246.30.234]) by smtp.gmail.com with ESMTPSA id h27-20020a05620a13fb00b00787930320b6sm3096198qkl.70.2024.03.11.15.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 15:32:51 -0700 (PDT) From: Ivor Wanders To: ilpo.jarvinen@linux.intel.com Cc: hdegoede@redhat.com, ivor@iwanders.net, linux-kernel@vger.kernel.org, luzmaximilian@gmail.com, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH 1/1] platform/surface: platform_profile: add fan profile switching Date: Mon, 11 Mar 2024 18:32:30 -0400 Message-Id: <20240311223230.4653-1-ivor@iwanders.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: > Is char correct type here or do you perhaps mean e.g., u8 that is more approriate for 1-byte long binary data? [...] u8 ? Thanks for the review Ilpo. Agreed, u8 would be better, I also noticed that this variable, and the profile_le one in the function just above it can be const, I'll change this type to u8 and make both profile variable const in v2. ~Ivor