From patchwork Thu Aug 18 20:51:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Streit X-Patchwork-Id: 41760 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5A07E27BBEA; Thu, 18 Aug 2022 21:52:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1849B27BBE9 for ; Thu, 18 Aug 2022 21:52:12 +0100 (BST) Received: from localhost ([::1]:49942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOmUt-0002WE-87 for patchwork@mira.cbaines.net; Thu, 18 Aug 2022 16:52:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOmUk-0002TX-RM for guix-patches@gnu.org; Thu, 18 Aug 2022 16:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOmUk-0001Sn-Gx for guix-patches@gnu.org; Thu, 18 Aug 2022 16:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOmUk-0001dn-6b for guix-patches@gnu.org; Thu, 18 Aug 2022 16:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57287] [PATCH] gnu: Add tp-smapi-module. Resent-From: simon@netpanic.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Aug 2022 20:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57287 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57287@debbugs.gnu.org Cc: Simon Streit X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16608558976274 (code B ref -1); Thu, 18 Aug 2022 20:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2022 20:51:37 +0000 Received: from localhost ([127.0.0.1]:56821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOmUK-0001d7-VL for submit@debbugs.gnu.org; Thu, 18 Aug 2022 16:51:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:56810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOmUH-0001cy-OP for submit@debbugs.gnu.org; Thu, 18 Aug 2022 16:51:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOmUF-0001ss-Mh for guix-patches@gnu.org; Thu, 18 Aug 2022 16:51:33 -0400 Received: from smtprelay02.ispgateway.de ([80.67.18.44]:3174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOmUD-0001OT-Pl for guix-patches@gnu.org; Thu, 18 Aug 2022 16:51:31 -0400 Received: from [62.8.179.11] (helo=herbert.d22.home.arpa) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1oOmUT-0007VD-Ll; Thu, 18 Aug 2022 22:51:45 +0200 From: simon@netpanic.org Date: Thu, 18 Aug 2022 22:51:16 +0200 Message-Id: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Df-Sender: c2ltb25AbmV0cGFuaWMub3Jn Received-SPF: none client-ip=80.67.18.44; envelope-from=simon@netpanic.org; helo=smtprelay02.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Simon Streit * gnu/packages/linux.scm (tp-smapi-module): New variable. --- gnu/packages/linux.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index fb8b4fa5a8..b7f09f123b 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9410,3 +9410,30 @@ (define-public evtest directly from the kernel device and prints a device description and the events with the value and the symbolic name.") (license license:gpl2+))) + +(define-public tp-smapi-module + (package + (name "tp-smapi-module") + (version "0.43") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/linux-thinkpad/tp_smapi") + (commit (string-append "tp-smapi/" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1rjb0njckczc2mj05cagvj0lkyvmyk6bw7wkiinv81lw8m90g77g")))) + (build-system linux-module-build-system) + (arguments + `(#:tests? #f)) ;there are none. + (home-page "https://github.com/linux-thinkpad/tp_smapi") + (synopsis + "The tp_smapi kernel module exposes some features of ThinkPad hardware") + (description + "Currently, the main functionality tp_smapi +implements is control of battery chargin and extended battery status. +The software package also includes an improved version of the HDAPS +driver. The underlying hardware interfaces are SMAPI and direct access +to the embedded controller.") + (license license:gpl2+)))