From mboxrd@z Thu Jan 1 00:00:00 1970 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 0C781C433EF for ; Sun, 13 Feb 2022 15:10:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236662AbiBMPKn (ORCPT ); Sun, 13 Feb 2022 10:10:43 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236667AbiBMPKl (ORCPT ); Sun, 13 Feb 2022 10:10:41 -0500 Received: from mxout01.lancloud.ru (mxout01.lancloud.ru [45.84.86.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66BC35B3CF for ; Sun, 13 Feb 2022 07:10:35 -0800 (PST) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout01.lancloud.ru 623A220E4586 Received: from LanCloud Received: from LanCloud Received: from LanCloud From: Sergey Shtylyov To: Damien Le Moal , Subject: [PATCH 0/2] Refactor the accessors for the ATA device control and alternate status registers Date: Sun, 13 Feb 2022 18:10:30 +0300 Message-ID: <20220213151032.4694-1-s.shtylyov@omp.ru> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Here are 2 patches against the 'for-next' branch of Damien Le Moal's 'libata.git' repo. Refactor the accessors for the device control and alternate status registers moving the prerequeiste checks done now around the calls into the functionas themselves and make them return a 'bool' result indicating if a respective register exists or not... Sergey Shtylyov (2): ata: libata-sff: refactor ata_sff_set_devctl() ata: libata-sff: refactor ata_sff_altstatus() drivers/ata/libata-sff.c | 86 +++++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 40 deletions(-) -- 2.26.3