You haven't provided enough information.
I made a battery charger to charge two 14Ah sealed lead acid batteries connected in series in my shed using an LM317 which just served to limit the voltage from the panels. The charge current was well within the specification of the battery.