From patchwork Thu Oct 25 06:21:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Popple X-Patchwork-Id: 988909 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42gcTf5wP6z9sBh for ; Thu, 25 Oct 2018 17:21:42 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=popple.id.au Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42gcTf2rmNzDrYb for ; Thu, 25 Oct 2018 17:21:42 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=popple.id.au X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42gcTW2Z69zDrPt for ; Thu, 25 Oct 2018 17:21:35 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=popple.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42gcTW0B30z9sBZ; Thu, 25 Oct 2018 17:21:35 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=popple.id.au From: Alistair Popple To: pdbg@lists.ozlabs.org Date: Thu, 25 Oct 2018 17:21:21 +1100 Message-Id: <20181025062131.18873-1-alistair@popple.id.au> X-Mailer: git-send-email 2.11.0 Subject: [Pdbg] [PATCH 00/10] Cleanup of old code X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: amitay@ozlabs.org MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Most of the device-tree parsing code was originally taken from Skiboot. Only some of it turned out to be useful for pdbg which resulted in a lot of dead code which this patch series removes. It has also resulted in a lot of functions being made global. Some code restructuring allows most functions to be declared static making it more obvious which ones are core library functions and which are for internal use only. Alistair Popple (10): libpdbg: Remove unused code libpdbg: Make more declarations static libpdbg: Move property code into libpdbg/device.c libpdbg: Rename property functions libpdbg: Rework chip-id functions libpdbg: Rework target addressing libpdbg: Remove old dt_prop functions libpdbg: Rework target compatible libpdbg: Make dt_root private libpdbg: Remove device.h Makefile.am | 1 - libpdbg/bmcfsi.c | 38 +++-- libpdbg/cfam.c | 6 +- libpdbg/device.c | 463 +++++++++++++----------------------------------------- libpdbg/device.h | 228 --------------------------- libpdbg/host.c | 2 +- libpdbg/htm.c | 12 +- libpdbg/i2c.c | 7 +- libpdbg/libpdbg.c | 97 ++++-------- libpdbg/libpdbg.h | 33 +++- libpdbg/p8chip.c | 6 +- libpdbg/p9chip.c | 6 +- libpdbg/target.c | 18 +-- libpdbg/target.h | 1 - libpdbg/xbus.c | 2 +- src/htm.c | 1 - src/main.c | 4 +- 17 files changed, 217 insertions(+), 708 deletions(-) delete mode 100644 libpdbg/device.h --- 2.11.0