public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nikita Kiryanov <nikita@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] lcd: refactor lcd console stuff into its own file
Date: Fri, 21 Nov 2014 12:42:47 +0200	[thread overview]
Message-ID: <546F1727.8070106@compulab.co.il> (raw)
In-Reply-To: <CAPnjgZ3+7bu=W+y98hxKy6zbM8XZCCmL3QWYP70sjLYUBKVBmg@mail.gmail.com>

Hi Simon,

On 11/20/2014 08:35 PM, Simon Glass wrote:
> Hi Nikita,
>
> On 20 November 2014 16:13, Nikita Kiryanov <nikita@compulab.co.il> wrote:
>> common/lcd.c is a mix of code portions that do different but related
>> things. To improve modularity, the various code portions should be split
>> into their own modules. Separate lcd console code into its own file.
>>
>> In the process of making this move, some minor changes are introduced:
>> CONSOLE_ROWS and CONSOLE_COLS macros are replaced with variables which
>> are assigned using a new function lcd_init_console().
>>
>> Minor changes were done to facilitate communication between lcd code
>> and lcd_console code, specifically in the introduction of lcd_console
>> functions set_console_col(), set_console_row(), lcd_get_screen_rows(),
>> lcd_get_screen_columns(), and lcd funcitons lcd_getbgcolor(),
>> lcd_getfgcolor().
>>
>> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
>> Cc: Anatolij Gustschin <agust@denx.de>
>> Cc: Wolfgang Denk <wd@denx.de>
>> Cc: Simon Glass <sjg@chromium.org>
>
> To my mind this patch should be split - one that changes the code and
> another to move part of it into a separate file. Also how about adding
> function comments to the header file (lcd_console.h and lcd.h)?

Sure, I can do that.
I also just noticed that I forgot the license headers in the new files,
so V2 coming up.

>
> Regards,
> Simon
>

-- 
Regards,
Nikita Kiryanov

      reply	other threads:[~2014-11-21 10:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-20 16:13 [U-Boot] [PATCH 0/5] cleanup and refactor lcd.c Nikita Kiryanov
2014-11-20 16:13 ` [U-Boot] [PATCH 1/5] lcd: remove CONFIG_SYS_INVERT_COLORS Nikita Kiryanov
2014-11-20 18:24   ` Simon Glass
2014-11-20 16:13 ` [U-Boot] [PATCH 2/5] lcd: cleanup lcd_drawchars Nikita Kiryanov
2014-11-20 18:30   ` Simon Glass
2014-11-20 16:13 ` [U-Boot] [PATCH 3/5] mpc8xx_lcd: get rid of CONFIG_EDT32F10 Nikita Kiryanov
2014-11-20 18:31   ` Simon Glass
2014-11-20 16:13 ` [U-Boot] [PATCH 4/5] lcd: remove LCD_MONOCHROME Nikita Kiryanov
2014-11-20 18:32   ` Simon Glass
2014-11-20 16:13 ` [U-Boot] [PATCH 5/5] lcd: refactor lcd console stuff into its own file Nikita Kiryanov
2014-11-20 18:35   ` Simon Glass
2014-11-21 10:42     ` Nikita Kiryanov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=546F1727.8070106@compulab.co.il \
    --to=nikita@compulab.co.il \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox