Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7867138rwl; Tue, 10 Jan 2023 06:23:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXu8RoZWtHErvsWZWhl6C26+W6xd79sHWiBvLXDW373fPGHtCKHBvBqrvFyAACKlwTZL2iYq X-Received: by 2002:aa7:8599:0:b0:588:eac0:b05b with SMTP id w25-20020aa78599000000b00588eac0b05bmr6324716pfn.27.1673360628309; Tue, 10 Jan 2023 06:23:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673360628; cv=none; d=google.com; s=arc-20160816; b=wx2Ud3/uoWOvH8yEA63w61IoxrWZKSVw/P1uGA0DTohzlOUupqORzJ/u0uEvtfI35E EEqm4nBORVy0zs6oN8mIU+8eqj4AjGbqid69222V3t0E3pRzd5LHl47DNm6Tud+iVGqE 4E5KbJTxHhUtrgID/wq9VBtd0eR5rP4wiJ4r3GJ7565PHdCtpD2QX3lUMTA5/oPaGGNw UCjhZg+xiMtfJSIRghy+nx4iuI0bHuvGL2Z0kP54Eun24tUd829Zqn3XozhE2EZDGlti jsBdk0f1edHkNyfbJS9Qswx289hHVXZVfq+OQ5rzGVmg5Sjn5IkRoFpSfEauj0cL5nFw Z5WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ux8Yf7rSJV4LBhjXjys56T2BkYSjAZnChnL76PqTzmE=; b=Np4qeo4Ngn/uTwLmXg2taYr+OHo7cG1YDWKTbMTDo4byv8VPFZYoj0NzLeW0mlC/Hu pibrG5tXpyylwbTGxhTdHZvVFswY8xt/FXcoM5tFtOkhA73lLLdLN2TSmYuOjbJxQgSu X9odhEdnUTdlZcxZF27fGwdNVxdnfrLkDX68iTusu24EN/OxjGZW3ihm1CU11aj1HRPZ oLahOFrNQdASCz6wglyp4XswJROX86ZP+OUs/8EEB2n2PqTk52bdShmLd4qSP1qQK2p0 IGS0U8EbhsCD1FtKOBKYKxMcO3H2jnf1dSFus1TLmszXlBw3pHc/ky53dIx4kU3PfiAv X1Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KCUGyR5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j125-20020a625583000000b005815349139fsi11066598pfb.81.2023.01.10.06.23.41; Tue, 10 Jan 2023 06:23:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KCUGyR5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233081AbjAJOH4 (ORCPT + 55 others); Tue, 10 Jan 2023 09:07:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238659AbjAJOHn (ORCPT ); Tue, 10 Jan 2023 09:07:43 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F5BB1FD; Tue, 10 Jan 2023 06:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673359663; x=1704895663; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MrltX0Mbfq5di0+cEUd00fzCE2JUwG4J0N0gH0rA9sM=; b=KCUGyR5GingMfiNDGABiPev6egDpKYNW1tDH/NGJ09oweDR8oJo1DEbn rHo6nbTJ+XOcxvHHDrQshMwUq9gvAZNQgaxz2eBP7GTSHJfrbrD4scuFa IlmHjoNj74xk5WAgT/qjCFAOPPn5HudH9jRO3t7RYAlb9/HvWL9ndQANC 3sCOgXKeVnw4bmKJvW5OrsfJuSAX3dV/9FTqV8nE3wfSduSOy5rJ5jDF/ VnathzoXVMKUntBcTtjujTWWCQ3mb9Kt0LN3xebuRggvMqEJFga8v5DqJ cu4vboZkSRGIfpE6mKKT3Gpvp7ZItxgLocxTYHJrtwZHPMH43vF4JLFAw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="325156495" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="325156495" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 06:07:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="606971784" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="606971784" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 10 Jan 2023 06:07:39 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id D6F65130; Tue, 10 Jan 2023 16:08:12 +0200 (EET) From: Andy Shevchenko To: Rasmus Villemoes , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Cc: Alessandro Zummo , Alexandre Belloni , Jean Delvare , Guenter Roeck , Andy Shevchenko Subject: [PATCH v2 0/5] rtc: isl12022: Clean up and simplify the driver Date: Tue, 10 Jan 2023 16:08:01 +0200 Message-Id: <20230110140806.87432-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While looking for something else I noticed that this driver is dusted a bit. Clean up and simplify it using available kernel types and APIs. Changelog v2: - added tags to patches 1,2,4,5 (Rasmus) Andy Shevchenko (5): rtc: isl12022: Get rid of unneeded private struct isl12022 rtc: isl12022: Explicitly use __le16 type for ISL12022_REG_TEMP_L rtc: isl12022: Drop unneeded OF guards and of_match_ptr() rtc: isl12022: Join string literals back rtc: isl12022: sort header inclusion alphabetically drivers/rtc/rtc-isl12022.c | 93 ++++++++++++++------------------------ 1 file changed, 34 insertions(+), 59 deletions(-) -- 2.39.0