From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id 69E3A1F0782; Thu, 13 Apr 2017 13:48:13 -0400 (EDT) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by befuddled.reisers.ca (Postfix) with ESMTPS id 9BE6C1F0757 for ; Thu, 13 Apr 2017 13:47:36 -0400 (EDT) Received: by mail-wm0-x242.google.com with SMTP id o81so13957578wmb.0 for ; Thu, 13 Apr 2017 10:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:user-agent:date:from:to:cc:subject:references :mime-version:content-disposition; bh=ZpKAV9ez4LGAMZDm7WyVLnFSKbGvQl/Qgjo/LjCz+3w=; b=G1bypXojKGZ8mu61h3+mX001Hq7S7vrqZ9bJ53XHYK3X64dFiv0GxSRdSyX9TY2DOH 651nRNdeHI/W8vxgy2HnV0aq4r9SzvlQ4P/JKHqLlAk0q994kR9vdMiz53q51FRcMPSb hWk+Xf82ptz1KAkb9YMwbsG+UKRi2DgkpuV4RPq+YsiiMR6TY7eOm/TmGcLYzU+EB9Mo RvVB5FY3s0WCWJ5o1LRbPpxskwQ9AAcOoIfj+aFCH3dPlePc5RCnzOErlO/AiVvPV1ds VexbJdslZgEYmig3rk6h09AKeacTVS9Phw36iT/qLh/y6fqlqcL1BJQA4Vh4YZ7w7nlK 6epg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:user-agent:date:from:to:cc:subject :references:mime-version:content-disposition; bh=ZpKAV9ez4LGAMZDm7WyVLnFSKbGvQl/Qgjo/LjCz+3w=; b=WHvW8yx9JQPN6lwjmduIaJVsBtKq6BbfIDcsheFe4ibEbB1mqCsUl78lLZLUqj0vuX aq/iqFbhN23KqhcctB43A5dA417GljBT4qvya8pNhd2CLhr6gvkRqxsXK7C+451qKjSU 9+Sp0O3rKbWBG14qJJBlFPOVU9aFX56vJITlj0o4iFOp46PL1ZC9RR6LGL95wSzRaXMo /8sqUvAglZ8QhBBTG370/jNAXqvEZzkZn4+qInEzG4Fkr3q9f2mQE4F+Ok6ZcOz08Jx/ Aq4U5MEz631VoKp0Jxmdp4/LcV2QhKP4uAJYoCnagGr31//H0MOpiekmYfDSaAFewZqL 10Hw== X-Gm-Message-State: AN3rC/4Ws8jAUAdaC577Ftohu274Hqco56mH5iuew2itroXMFnKkcHBj BQosKdllzxFxvqVF X-Received: by 10.28.68.134 with SMTP id r128mr11552287wma.60.1492105653417; Thu, 13 Apr 2017 10:47:33 -0700 (PDT) Received: from sanghar ([2a00:23c4:7320:5e00:224:d6ff:fe76:7136]) by smtp.gmail.com with ESMTPSA id z84sm9942928wmh.27.2017.04.13.10.47.32 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Apr 2017 10:47:32 -0700 (PDT) Message-Id: <20170413174732.042632983@gmail.com> User-Agent: quilt/0.65 Date: Thu, 13 Apr 2017 18:41:33 +0100 From: Okash Khawaja To: Samuel Thibault Cc: speakup@linux-speakup.org, Okash Khawaja Subject: [patch 5/7] staging: speakup: migrate acntsa, bns, dummy and txprt to ttyio References: <20170413174128.794011516@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=05_migrate_dummy_acntsa_bns_txprt_to_ttyio X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2017 17:48:14 -0000 This changes the above five synths to TTY-based comms. They were chosen as a first pass because their serial comms are straightforward, i.e. they don't use serial input and don't do internal port knocking. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault Index: linux-staging/drivers/staging/speakup/speakup_dummy.c =================================================================== --- linux-staging.orig/drivers/staging/speakup/speakup_dummy.c +++ linux-staging/drivers/staging/speakup/speakup_dummy.c @@ -98,10 +98,10 @@ static struct spk_synth synth_dummy = { .startup = SYNTH_START, .checkval = SYNTH_CHECK, .vars = vars, - .io_ops = &spk_serial_io_ops, - .probe = spk_serial_synth_probe, - .release = spk_serial_release, - .synth_immediate = spk_serial_synth_immediate, + .io_ops = &spk_ttyio_ops, + .probe = spk_ttyio_synth_probe, + .release = spk_ttyio_release, + .synth_immediate = spk_ttyio_synth_immediate, .catch_up = spk_do_catch_up, .flush = spk_synth_flush, .is_alive = spk_synth_is_alive_restart, Index: linux-staging/drivers/staging/speakup/speakup_acntsa.c =================================================================== --- linux-staging.orig/drivers/staging/speakup/speakup_acntsa.c +++ linux-staging/drivers/staging/speakup/speakup_acntsa.c @@ -99,10 +99,10 @@ static struct spk_synth synth_acntsa = { .startup = SYNTH_START, .checkval = SYNTH_CHECK, .vars = vars, - .io_ops = &spk_serial_io_ops, + .io_ops = &spk_ttyio_ops, .probe = synth_probe, - .release = spk_serial_release, - .synth_immediate = spk_serial_synth_immediate, + .release = spk_ttyio_release, + .synth_immediate = spk_ttyio_synth_immediate, .catch_up = spk_do_catch_up, .flush = spk_synth_flush, .is_alive = spk_synth_is_alive_restart, @@ -125,7 +125,7 @@ static int synth_probe(struct spk_synth { int failed; - failed = spk_serial_synth_probe(synth); + failed = spk_ttyio_synth_probe(synth); if (failed == 0) { synth->synth_immediate(synth, "\033=R\r"); mdelay(100); Index: linux-staging/drivers/staging/speakup/speakup_txprt.c =================================================================== --- linux-staging.orig/drivers/staging/speakup/speakup_txprt.c +++ linux-staging/drivers/staging/speakup/speakup_txprt.c @@ -95,10 +95,10 @@ static struct spk_synth synth_txprt = { .startup = SYNTH_START, .checkval = SYNTH_CHECK, .vars = vars, - .io_ops = &spk_serial_io_ops, - .probe = spk_serial_synth_probe, - .release = spk_serial_release, - .synth_immediate = spk_serial_synth_immediate, + .io_ops = &spk_ttyio_ops, + .probe = spk_ttyio_synth_probe, + .release = spk_ttyio_release, + .synth_immediate = spk_ttyio_synth_immediate, .catch_up = spk_do_catch_up, .flush = spk_synth_flush, .is_alive = spk_synth_is_alive_restart,