All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 04/11] lpddr: replace open-coded ARRAY_SIZE with macro
@ 2012-04-11  0:55 Jim Cromie
  2012-04-21 14:19 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Cromie @ 2012-04-11  0:55 UTC (permalink / raw)
  To: linux-mtd, dwmw2; +Cc: Jim Cromie, trivial


Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
 drivers/mtd/lpddr/qinfo_probe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/lpddr/qinfo_probe.c b/drivers/mtd/lpddr/qinfo_probe.c
index dbfe17b..45abed6 100644
--- a/drivers/mtd/lpddr/qinfo_probe.c
+++ b/drivers/mtd/lpddr/qinfo_probe.c
@@ -57,7 +57,7 @@ static struct qinfo_query_info qinfo_array[] = {
 
 static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str)
 {
-	int qinfo_lines = sizeof(qinfo_array)/sizeof(struct qinfo_query_info);
+	int qinfo_lines = ARRAY_SIZE(qinfo_array);
 	int i;
 	int bankwidth = map_bankwidth(map) * 8;
 	int major, minor;
-- 
1.7.8.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 04/11] lpddr: replace open-coded ARRAY_SIZE with macro
  2012-04-11  0:55 [PATCH 04/11] lpddr: replace open-coded ARRAY_SIZE with macro Jim Cromie
@ 2012-04-21 14:19 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-04-21 14:19 UTC (permalink / raw)
  To: Jim Cromie; +Cc: dwmw2, linux-mtd, trivial

On Tue, 2012-04-10 at 18:55 -0600, Jim Cromie wrote:
> Signed-off-by: Jim Cromie <jim.cromie@gmail.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-21 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11  0:55 [PATCH 04/11] lpddr: replace open-coded ARRAY_SIZE with macro Jim Cromie
2012-04-21 14:19 ` Artem Bityutskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.