1. 15 1月, 2012 2 次提交
  2. 14 1月, 2012 2 次提交
  3. 13 1月, 2012 2 次提交
  4. 11 1月, 2012 16 次提交
  5. 09 1月, 2012 2 次提交
  6. 08 1月, 2012 1 次提交
  7. 07 1月, 2012 1 次提交
  8. 19 12月, 2011 1 次提交
  9. 22 11月, 2011 1 次提交
    • D
      ARM: amba: Auto-generate AMBA driver module aliases during modpost · 523817bd
      Dave Martin 提交于
      This patch adds the necessary support in file2alias.c to define
      suitable aliases based on the amba_id table in AMBA driver modules.
      
      This should be sufficient to allow such modules to be auto-loaded
      via udev.  The AMBA bus driver's uevent hotplug code is also
      modified to pass an approriate MODALIAS string in the event.
      
      For simplicity, the AMBA ID is treated an an opaque 32-bit numeber.
      Module alises use patterns as appropriate to describe the value-
      mask pairs described in the driver's amba_id list.
      
      The proposed alias format is (extended regex):
      
          ^amba:d(HEX){8}$
      
      Where HEX is a single upper-case HEX digit or a pattern (? or []
      expression) matching a single upper-case HEX digit, as expected by
      udev.
      
      "d" is short for "device", following existing alias naming
      conventions for other device types.  This adds some flexibility for
      unambiguously extending the alias format in the future by adding
      additional leading and trailing fields, if this turns out to be
      necessary.
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      Acked-by: NPawel Moll <pawel.moll@arm.com>
      523817bd
  10. 07 11月, 2011 1 次提交
  11. 01 11月, 2011 2 次提交
  12. 30 10月, 2011 1 次提交
  13. 11 10月, 2011 3 次提交
  14. 15 9月, 2011 1 次提交
  15. 09 9月, 2011 4 次提交
    • C
      scripts/kconfig/nconf: add KEY_HOME / KEY_END for dialog_inputbox · 93072c3e
      Cheng Renquan 提交于
      to make it easier to locate begin/end when editing long strings;
      Signed-off-by: NCheng Renquan <crquan@gmail.com>
      Acked By: Nir Tzachar <nir.tzachar@gmail.com>
      93072c3e
    • C
      scripts/kconfig/nconf: fix editing long strings · e631a57a
      Cheng Renquan 提交于
      The original dialog_inputbox doesn't work with longer than prompt_width
      strings, here fixed it in this way:
      1) add variable cursor_form_win to record cursor of form_win,
         keep its value always between [0, prompt_width-1];
         reuse the original cursor_position as cursor of the string result,
         use (cursor_position-cursor_form_win) as begin offset to show part of
         the string in form_win;
      Signed-off-by: NCheng Renquan <crquan@gmail.com>
      Cc: Arnaud Lacombe <lacombar@gmail.com>
      Cc: Nir Tzachar <nir.tzachar@gmail.com>
      e631a57a
    • C
      scripts/kconfig/nconf: dynamically alloc dialog_input_result · 5ea9f64f
      Cheng Renquan 提交于
      To support unlimited length string config items;
      
      No check for realloc return value keeps code simple, and to be
      consistent with other existing unchecked malloc in kconfig.
      Signed-off-by: NCheng Renquan <crquan@gmail.com>
      Signed-off-by: NArnaud Lacombe <lacombar@gmail.com>
      5ea9f64f
    • C
      scripts/kconfig/nconf: fix memmove's length arg · cd58a90f
      Cheng Renquan 提交于
      In case KEY_BACKSPACE / KEY_DC to delete a char, it memmove only
      (len-cursor_position+1) bytes;
      the default case is to insert a char, it should also memmove exactly
      (len-cursor_position+1) bytes;
      
      the original use of (len+1) is wrong and may access following memory
      that doesn't belong to result, may cause SegFault in theory;
      
      	case KEY_BACKSPACE:
      		if (cursor_position > 0) {
      			memmove(&result[cursor_position-1],
      					&result[cursor_position],
      					len-cursor_position+1);
      			cursor_position--;
      		}
      		break;
      	case KEY_DC:
      		if (cursor_position >= 0 && cursor_position < len) {
      			memmove(&result[cursor_position],
      					&result[cursor_position+1],
      					len-cursor_position+1);
      		}
      		break;
      	default:
      		if ((isgraph(res) || isspace(res)) &&
      				len-2 < result_len) {
      			/* insert the char at the proper position */
      			memmove(&result[cursor_position+1],
      					&result[cursor_position],
      					len-cursor_position+1);
      			result[cursor_position] = res;
      			cursor_position++;
      		}
      Signed-off-by: NCheng Renquan <crquan@gmail.com>
      Acked-by: NNir Tzachar <nir.tzachar@gmail.com>
      cd58a90f