From patchwork Tue Jan 10 14:08:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13095212 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 C80C7C46467 for ; Tue, 10 Jan 2023 14:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232214AbjAJOHy (ORCPT ); Tue, 10 Jan 2023 09:07:54 -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 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@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(-)