matthieu castet <castet.matthieu@xxxxxxx> wrote:
I think we'll made it static....
+static int request_cmvs(struct uea_softc *sc,
+ struct uea_cmvs **cmvs, const struct firmware **fw)
+{
+ int ret, size;
+ u8 *data;
+ char *file;
+ char cmv_name[256] = FW_DIR;
That's rather a lot of stack. Can this be made static, of kmalloced?
Could you elaborate a bit more ?+
+ *cmvs = (struct uea_cmvs *)(data + 1);
That's a bit rude - asking the compiler to perform a structure copy from an
odd address. memcpy() would be saner.
Ok, we may be convert some values to sysfs. It would be nice if usbatm allow us to export some common value (margin, ...)....
+/**
+ * uea_read_proc : /proc information
+ */
+static int uea_read_proc(char *page, + char **start, off_t off, int count, int *eof, void *data)
People get shouted at for adding /proc handlers. Greg may have thoughts...