From nobody Wed Nov 27 10:49:00 2024 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 2C5E6C133; Sat, 12 Oct 2024 02:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728698504; cv=none; b=QOcTxxbjlhsrH5mDz7GapG9ZwPEoBkG67zjSxkmojbzbhOpi6UnL34RMdzueIlhwvGlzhwByKEsTHUgoexpZF2pwtslS7+hv8C6Lz48j4+eIEnYLEvt4GYufADVGgm39suCWKCOAF62RREw8Pq8rHnDsb0foQ4OtsPeZYWPNUVs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728698504; c=relaxed/simple; bh=XmdlGaiTzRtw5oFDVqQhG4l0U3fF3Bb9A36hf7tcoiE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HIrfOH1ZD9Bsz9eKTstQh1pQsIFJL4FllzPJ2He28Z9qkMniumVJBjZSGb0DEDV+t0SdoHGXmKSYctzMQl5U8uPZTyP8HRebsq0AgcuQKGAl/ysX0c/J+olMwWyh+lu9danokoEFm7n8SfstDOxV+3hECyx1Hm81lIn7jFgV+hc= 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=e/oue67r; arc=none smtp.client-ip=209.85.210.175 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="e/oue67r" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-71df67c67fcso1891866b3a.2; Fri, 11 Oct 2024 19:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728698502; x=1729303302; 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=/kUTee/EwDKbhKkD7rEW0ZuZKhssUXJ82VeD3DcDvJk=; b=e/oue67rCsNETsWwAmBFb2uuWmg4rh6kivd8HcwukZzO0LqkhakyKDrHIVFiUy062E B1mv4hd8Smt0Hfck3e4orZMxqJn690LOpIMwk+tdTB407aP1+ct+cAe5J9ehkwWnUNwo mo9CU5PemgJdyIp7pnBwMmIqf4PUX+ejrEW0joVqckb1oZmziFXlVBrTa9rMvIDU+x9C i7SzzMbNV3SS1G4GHRxkVvaCSlSdx++U/63nHKLGe9F+8gdJvpgChsURmhBFux7woeM6 Zl2aSwG9avg+QqB39yONVLVbIW11bl5VF5VBE4ANGxiGLgjwJJd53up4TxbsOujJC3Ow YlpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728698502; x=1729303302; 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=/kUTee/EwDKbhKkD7rEW0ZuZKhssUXJ82VeD3DcDvJk=; b=Y93peRcaXRzAyVxJEn003D+Co6PkxqwFeYnl2jIRiZJdInWi2NJe0mFyTp7I7o6RMw 7GfEj9O7GvQp/J2GYGb0EBfeR8C+Ceyk+iO8RoxSlf2nGTLJjz5Q5N4Rcjm0xll7Hibq RQ+JEIV+V1e3ErUXYQQM7Z7izP1q01p2pUV3TgFMqzkZG9T+KxWx24HPCA/WbRDKXrzQ ZSyrKvCZFYngd+A45t9kTdFDwrS5FqqJoQOVhX7RXOIqrrsmdT7XbN9oBtdekHdIBlQy nJT6dPtPK5L5GxagwzlYL6ajAwA0C5rAmI4YzppsDrPPRFDgfUU6mMRWkcwE0n8Qb68e 6mRQ== X-Forwarded-Encrypted: i=1; AJvYcCXCXOcc4vUdVW2H6i/3SRoaTP0zHQtyxfLQ2XQ9jt5DLtI8l2rLMxdsjN+jXvP1ywKFuUHiagnRoCgHA2LAQmSWH8VIQw==@vger.kernel.org, AJvYcCXUstW6mqcxMycOQB5o3FLD16cUkC+X6oksfThwKRtUqZdHGrPKUjDjDDofOkAcT7ZQ5/LO+KhYiAtKEXE=@vger.kernel.org X-Gm-Message-State: AOJu0YyFe2WPZvLytZ6eJyH2w7DVjrlb5wcs2Qu8EHGIZGRe9gXDtDkx uky4cDIJGQtgI8sdR18O/TPEdXhspOdK97LRwzhnFoZpQWMMVwKj X-Google-Smtp-Source: AGHT+IHmphhDz492aFTizyr4HIrLKVrDEoTYtTbEwX7SWlbFqf1n7tsp3xYcTt8xT0nzJRnT0hJ83g== X-Received: by 2002:a05:6a00:10c5:b0:71d:f15e:d023 with SMTP id d2e1a72fcca58-71e4c152644mr2566715b3a.11.1728698502299; Fri, 11 Oct 2024 19:01:42 -0700 (PDT) Received: from localhost.localdomain (host95.181-12-202.telecom.net.ar. [181.12.202.95]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e2a9f5491sm3302405b3a.70.2024.10.11.19.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 19:01:41 -0700 (PDT) From: Kurt Borja To: kuurtb@gmail.com Cc: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH v5 1/4] alienware-wmi: fixed indentation and clean up Date: Fri, 11 Oct 2024 23:01:25 -0300 Message-ID: <20241012020124.19444-2-kuurtb@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241012015849.19036-3-kuurtb@gmail.com> References: <20241012015849.19036-3-kuurtb@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fixed inconsistent indentation and removed unnecessary (acpi_size) and (u32 *) casts. Signed-off-by: Kurt Borja Reviewed-by: Armin Wolf colors; @@ -306,7 +306,7 @@ static int alienware_update_led(struct platform_zone *z= one) guid =3D LEGACY_CONTROL_GUID; method_id =3D zone->location + 1; =20 - input.length =3D (acpi_size) sizeof(legacy_args); + input.length =3D sizeof(legacy_args); input.pointer =3D &legacy_args; } pr_debug("alienware-wmi: guid %s method %d\n", guid, method_id); @@ -358,7 +358,7 @@ static int wmax_brightness(int brightness) .led_mask =3D 0xFF, .percentage =3D brightness, }; - input.length =3D (acpi_size) sizeof(args); + input.length =3D sizeof(args); input.pointer =3D &args; status =3D wmi_evaluate_method(WMAX_CONTROL_GUID, 0, WMAX_METHOD_BRIGHTNESS, &input, NULL); @@ -508,7 +508,7 @@ static acpi_status alienware_wmax_command(struct wmax_b= asic_args *in_args, struct acpi_buffer input; struct acpi_buffer output; =20 - input.length =3D (acpi_size) sizeof(*in_args); + input.length =3D sizeof(*in_args); input.pointer =3D in_args; if (out_data) { output.length =3D ACPI_ALLOCATE_BUFFER; @@ -542,7 +542,7 @@ static ssize_t show_hdmi_cable(struct device *dev, }; status =3D alienware_wmax_command(&in_args, WMAX_METHOD_HDMI_CABLE, - (u32 *) &out_data); + &out_data); if (ACPI_SUCCESS(status)) { if (out_data =3D=3D 0) return sysfs_emit(buf, "[unconnected] connected unknown\n"); @@ -563,7 +563,7 @@ static ssize_t show_hdmi_source(struct device *dev, }; status =3D alienware_wmax_command(&in_args, WMAX_METHOD_HDMI_STATUS, - (u32 *) &out_data); + &out_data); =20 if (ACPI_SUCCESS(status)) { if (out_data =3D=3D 1) @@ -643,7 +643,7 @@ static ssize_t show_amplifier_status(struct device *dev, }; status =3D alienware_wmax_command(&in_args, WMAX_METHOD_AMPLIFIER_CABLE, - (u32 *) &out_data); + &out_data); if (ACPI_SUCCESS(status)) { if (out_data =3D=3D 0) return sysfs_emit(buf, "[unconnected] connected unknown\n"); @@ -695,7 +695,7 @@ static ssize_t show_deepsleep_status(struct device *dev, .arg =3D 0, }; status =3D alienware_wmax_command(&in_args, WMAX_METHOD_DEEP_SLEEP_STATUS, - (u32 *) &out_data); + &out_data); if (ACPI_SUCCESS(status)) { if (out_data =3D=3D 0) return sysfs_emit(buf, "[disabled] s5 s5_s4\n"); --=20 2.47.0