scsi_sysfs: Fix queue_ramp_up_period return code
scsi_sysfs: Fix queue_ramp_up_period return code

Writing a number to /sys/bus/scsi/devices/<sdev>/queue_ramp_up_period
returns the value of that number instead of the number of bytes written.
This behavior can confuse programs expecting POSIX write() semantics.
Fix this by returning the number of bytes written instead.

Signed-off-by: Peter Oberparleiter <e296756d5edaffcdbc7b9904859492ff25d3fce5@linux.vnet.ibm.com>
Reviewed-by: Hannes Reinecke <b0d1e9e4a4e27620745ff49be9000da3174a4cc6@suse.de>
Cc: 4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@vger.kernel.org
Reviewed-by: Matthew R. Ochs <5279806d22638a7ca4d6f7841541587adc5832b0@linux.vnet.ibm.com>
Reviewed-by: Ewan D. Milne <2c554d25b86cf1e2efb352de0d4bd0940eeebcf1@redhat.com>
Signed-off-by: Martin K. Petersen <0384aaef27f06874adbdb09a807bb339f4aff9fd@oracle.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs