From patchwork Mon Dec 12 20:58:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 633445 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D7F6C4332F for ; Mon, 12 Dec 2022 20:59:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233126AbiLLU7D (ORCPT ); Mon, 12 Dec 2022 15:59:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233320AbiLLU7A (ORCPT ); Mon, 12 Dec 2022 15:59:00 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A0F1183A6 for ; Mon, 12 Dec 2022 12:58:59 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id b24-20020a05600c4a9800b003d21efdd61dso4873532wmp.3 for ; Mon, 12 Dec 2022 12:58:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a+MGbDKBj7Xl7l5uM094vkfbwnyYsqUfMcbA7UwcKv8=; b=SjzaM+2btuSfkz8AWjTFtJVlZybj7rrPB8boF2vBrq6CoOeSDTJM2TanyGG3gHUPxM 9xKuUgrxCd5hNCIlt54LCR4iyRuyIRrD8PhjqHKSgrmXxfphQ9MNAHy9Wa7SJGjtqIiF RioGfFSNNXP62D/EHsrdMwMoQgW0LON+6zbwYdE+BZMQ1asjMT1hfPXh/r3e599EM2OE YxxYWKDtS1bhoIL0zJfnfpQviqh/G8xmsPh6B4kzLOVejq6E3/HV6t1+VG9nSpsgYfRt 6YUWQKH5msz7cZA/c/exg2tTfgHS53yy2XQctjaaH34iLI2qzsHWGAvcZuqj+pBwR2pE 7lCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a+MGbDKBj7Xl7l5uM094vkfbwnyYsqUfMcbA7UwcKv8=; b=QSy+5N+NUTq0kOkNf7tEC7vXjMgnigVBSm4NFRLr2MGc92Bn/ekqqTJZoHq1r7NGyJ 2lcYInPmxJcCxNkxXim9+DnsrZ6nvydwWYJSiOz7XC0AppNbY58bRKhE8i+zfSSAdGwb hWdguEA5eyDtIbg4oTGze2Im51tIWpeREK23VOZQ+6z2bkY0t0s9h2XXcD5+/jdaYxH/ pWgHQkg2q9cYUVfQjZqkfLwVTRXfUwA6VR4d03O8xt6exBf9+G93PTMVxsxk7YMJi7zG wbd8tooWBeWp/9xW4B0xbvhGUMxk5DYIz3wU3a/+NoX572fU6k7G8/Owgu0ujKGEmRbL DcOw== X-Gm-Message-State: ANoB5plYnxOq/0gAKOSZkssGeMXaoku6zG0kc3HVNWvQRRCWtdbr/mh+ YPXWo4sAYu1KMBfyfxrILXWXuTSTdoNuLDUm X-Google-Smtp-Source: AA0mqf7wlfDb73bkiORt5TqHF0OVyAMRBVW5u4sp7eJW3H616JHtJzB0aroPO8lza0STB44Uj9f1xg== X-Received: by 2002:a1c:f216:0:b0:3cf:87c6:890e with SMTP id s22-20020a1cf216000000b003cf87c6890emr14161784wmc.27.1670878737858; Mon, 12 Dec 2022 12:58:57 -0800 (PST) Received: from mai.. (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id t123-20020a1c4681000000b003a3170a7af9sm10537201wma.4.2022.12.12.12.58.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 12:58:57 -0800 (PST) From: Daniel Lezcano X-Google-Original-From: Daniel Lezcano To: rafael@kernel.org, srinivas.pandruvada@linux.intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] Add ACPI trip points parser helpers Date: Mon, 12 Dec 2022 21:58:38 +0100 Message-Id: <20221212205843.3119407-1-daniel.lezcano@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Regarding thermal, the ACPI code parsing the trip points is duplicated inside different Intel drivers. The generic ACPI thermal driver also duplicates this code. Those ACPI parsing actions are used to define trip points and these ones are defined by, and specific to, the backend driver. The different get_trip_* ops, also very similar between each other, are using the specific trip point structure to return the requested trip point information.