From patchwork Mon Nov 6 06:55:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 118004 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2444931qgn; Sun, 5 Nov 2017 22:56:06 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q5gD6i1NqhvMO9jyuS4BhPFKY1m+1wOYHHwmm53mdIHrF9H9X0hpPpm+wgcUmIs00LIVRq X-Received: by 10.99.188.9 with SMTP id q9mr14525105pge.104.1509951366847; Sun, 05 Nov 2017 22:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509951366; cv=none; d=google.com; s=arc-20160816; b=q4MTWW1I1v5ivWI99u4ZHEHMCN7fIboQtoCw/c6ymkxE58wWUVZy8Kw3WjELOwjuvZ R+Ck5ERUJJmYW7qOAymqw2C+uzYZdxjo71vEktccvX4X5H+1qCPfn8CeseX3kzkoej4c vJv0nJPcBXDGCdpBHYuzoHnKAcrYk2fwN0yoCqiS2ERIKJ/FhpkUaIbtu+w7hoAoBi4f bWvofXZ6JaVLRr+9Bq3D+6D6OledVEEN9kD5NUiGYq+SJZ7pSwXTRn60CvHzKz78u79m +HLesTN5pDHF8pSZICdMj+rv78F+mfzrgxskZcElwBEnF0snwrRHaQ9Pu/+EFu2MQmfi gQ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Xo+ijNLXo0YxOhhRYzJgYdsuFXL3gOrruhr9+xdPSsM=; b=zFHJmKuCpvVaaI+VKwCQsMMNg4fEV1xjaVt4/lgdjHhomrmVGRx0l8xTU2sNg0qJEP OhFYCOEn/lo5m18axXeqSZOmNsRZeZJJUc/5ZPuy7RkyVMjn8K5Zla/BNz11oTa9Az1G 6b0XQpJfVLCVXXwsA48lkm1f71qwgeYu3f6XHD0QaCQ0VY/vf2yCoLSlQape9QN4it2B q5pmxySeP2hKRO6ny/c67sh5FFC/ZWXWLVUgn0HxEB3hYaW7GMoZ6sqIQPywMpOqKa/L xwhwv/b6auMQ1Rd02eoO5FNKhevG/GaHQIWhEpLLtPdjGksAYTdJuuHz9WLVvJBf3e1q wObw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f29si10720365pgn.736.2017.11.05.22.56.06; Sun, 05 Nov 2017 22:56:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751418AbdKFG4F (ORCPT + 1 other); Mon, 6 Nov 2017 01:56:05 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:60122 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbdKFG4E (ORCPT ); Mon, 6 Nov 2017 01:56:04 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 39EAE80D; Sun, 5 Nov 2017 22:56:04 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.162]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4D67B3F246; Sun, 5 Nov 2017 22:56:02 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH 0/3] More code cleanups Date: Mon, 6 Nov 2017 06:55:49 +0000 Message-Id: <1509951354-16370-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Additional code readability and simplification patches. These goes on top the previous patch set sent to the list. Gilad Ben-Yossef (3): staging: ccree: simplify error handling logic staging: ccree: simplify registers access staging: ccree: simplify ioread/iowrite drivers/staging/ccree/cc_hal.h | 33 -------------- drivers/staging/ccree/cc_regs.h | 42 ------------------ drivers/staging/ccree/dx_reg_base_host.h | 25 ----------- drivers/staging/ccree/ssi_driver.c | 75 ++++++++++++++------------------ drivers/staging/ccree/ssi_driver.h | 20 +++++++-- drivers/staging/ccree/ssi_fips.c | 14 +++--- drivers/staging/ccree/ssi_pm.c | 4 +- drivers/staging/ccree/ssi_request_mgr.c | 72 +++++++++++++++--------------- drivers/staging/ccree/ssi_sysfs.c | 11 +++-- 9 files changed, 98 insertions(+), 198 deletions(-) delete mode 100644 drivers/staging/ccree/cc_hal.h delete mode 100644 drivers/staging/ccree/cc_regs.h delete mode 100644 drivers/staging/ccree/dx_reg_base_host.h -- 2.7.4